From bdb0cc8e3c0ca9b31f4ecc7b10915ef04d8a99bc Mon Sep 17 00:00:00 2001 From: Akash Anand Date: Wed, 18 Aug 2021 08:39:58 +0530 Subject: [PATCH] Reviewed Changes : 1) Added || statement in new line 2) Extra new line at the end of the file get_sp_var.py --- .../lang/runtime/bindings/scripts/ScriptEvaluator.java | 8 ++++---- .../src/main/resources/scripts/get_sp_var.py | 2 +- 2 files changed, 5 insertions(+), 5 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 05702b322d..f825154056 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 @@ -82,8 +82,8 @@ private Value doEvaluateExpressionJython(String expr, Map jythonContext = createJythonContext(context); boolean systemPropertiesDefined = false; - if (functionDependencies.contains(ScriptFunction.GET_SYSTEM_PROPERTY) || - functionDependencies.contains(ScriptFunction.GET_SP_VAR)) { + if (functionDependencies.contains(ScriptFunction.GET_SYSTEM_PROPERTY) + || functionDependencies.contains(ScriptFunction.GET_SP_VAR)) { systemPropertiesDefined = true; } @@ -100,8 +100,8 @@ private Value doEvaluateExpressionExternalPython(String expr, Set functionDependencies) { Map pythonContext = createExternalPythonContext(context); boolean systemPropertiesDefined = false; - if (functionDependencies.contains(ScriptFunction.GET_SYSTEM_PROPERTY) || - functionDependencies.contains(ScriptFunction.GET_SP_VAR)) { + if (functionDependencies.contains(ScriptFunction.GET_SYSTEM_PROPERTY) + || functionDependencies.contains(ScriptFunction.GET_SP_VAR)) { systemPropertiesDefined = true; } if (systemPropertiesDefined) { diff --git a/cloudslang-runtime/src/main/resources/scripts/get_sp_var.py b/cloudslang-runtime/src/main/resources/scripts/get_sp_var.py index ef9446c5e3..3e6cda5b9c 100644 --- a/cloudslang-runtime/src/main/resources/scripts/get_sp_var.py +++ b/cloudslang-runtime/src/main/resources/scripts/get_sp_var.py @@ -5,4 +5,4 @@ def get_sp_var(key): value1 = globals().get(key) accessed(value1) property_value = sys_prop.get(value1) - return property_value \ No newline at end of file + return property_value