зеркало из https://github.com/microsoft/lisa.git
Script Transformer: Enable Compound Types
This will allow for the use of list, tuple, set, dict in the scripts of the script transformer.
This commit is contained in:
Родитель
eca0b70324
Коммит
657da85978
|
@ -61,7 +61,7 @@ class ScriptTransformer(Transformer):
|
|||
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}
|
||||
|
|
Загрузка…
Ссылка в новой задаче