From 3cbec449e4d2a5339d0b353890bbeb14cd91a23e Mon Sep 17 00:00:00 2001 From: GIlca Date: Mon, 9 Jan 2023 09:30:00 +0200 Subject: [PATCH] Replace python-server with python-executor --- .../lang/runtime/bindings/scripts/ScriptEvaluator.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cloudslang-runtime/src/main/java/io/cloudslang/lang/runtime/bindings/scripts/ScriptEvaluator.java b/cloudslang-runtime/src/main/java/io/cloudslang/lang/runtime/bindings/scripts/ScriptEvaluator.java index 9d9e8585d5..1d6f43c288 100644 --- a/cloudslang-runtime/src/main/java/io/cloudslang/lang/runtime/bindings/scripts/ScriptEvaluator.java +++ b/cloudslang-runtime/src/main/java/io/cloudslang/lang/runtime/bindings/scripts/ScriptEvaluator.java @@ -34,7 +34,7 @@ import java.util.stream.Collectors; import java.util.stream.Stream; -import static io.cloudslang.runtime.api.python.enums.PythonStrategy.PYTHON_SERVER; +import static io.cloudslang.runtime.api.python.enums.PythonStrategy.PYTHON_EXECUTOR; import static io.cloudslang.runtime.api.python.enums.PythonStrategy.getPythonStrategy; /** @@ -50,7 +50,7 @@ public class ScriptEvaluator extends ScriptProcessor { private static final String BACKWARD_COMPATIBLE_ACCESS_METHOD = "def accessed(key):" + LINE_SEPARATOR + " pass"; private static final PythonStrategy PYTHON_EVALUATOR = - getPythonStrategy(System.getProperty("python.expressionsEval"), PYTHON_SERVER); + getPythonStrategy(System.getProperty("python.expressionsEval"), PYTHON_EXECUTOR); public static final int MAX_LENGTH = Integer.getInteger("input.error.max.length", 1000); @Resource(name = "externalPythonRuntimeService") @@ -68,7 +68,7 @@ public Value evalExpr(String expr, Map context, Set