Skip to content

Commit

Permalink
Script Transformer: Enable Compound Types
Browse files Browse the repository at this point in the history
This will allow for the use of list, tuple, set, dict in the scripts of the script transformer.
  • Loading branch information
kamalca committed Oct 17, 2024
1 parent eca0b70 commit 657da85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lisa/transformers/script_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 657da85

Please sign in to comment.