diff --git a/lisa/transformers/script_transformer.py b/lisa/transformers/script_transformer.py index 18814af2c4..6d91f3ec2b 100644 --- a/lisa/transformers/script_transformer.py +++ b/lisa/transformers/script_transformer.py @@ -61,7 +61,7 @@ def _internal_run(self) -> Dict[str, Any]: key: self._runbook_builder.variables[key].data for key in item.variables } - evaluator = simpleeval.SimpleEval( + evaluator = simpleeval.EvalWithCompoundTypes( # Update ex: DEFAULT_OPERATORS | {ast.BitXor, operator.xor} operators=simpleeval.DEFAULT_OPERATORS | {}, # Update ex: DEFAULT_FUNCTIONS | {'floor': math.floor}