Correction on cache system

This commit is contained in:
2025-10-19 19:29:10 +02:00
parent ec89a227f2
commit 2632233dbd
13 changed files with 197 additions and 59 deletions

View File

@@ -1,5 +1,6 @@
use std::{
collections::{HashMap, HashSet},
env::var,
sync::Arc,
};
@@ -153,8 +154,13 @@ impl ActionInstance {
for (arg_name, state_value) in soap_data.iter() {
if let Some(arg_inst) = self.argument(arg_name) {
if arg_inst.get_model().is_in() {
action_data.insert(arg_name.clone(), state_value.to_reflect());
if arg_inst.is_in() {
if let Some(var_inst) = arg_inst.get_variable_instance() {
action_data
.insert(arg_name.clone(), var_inst.parse_value(state_value.clone()));
} else {
action_data.insert(arg_name.clone(), state_value.to_reflect());
}
updated.insert(arg_name.clone());
}
}