aboutsummaryrefslogtreecommitdiffstats
path: root/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Scripts
diff options
context:
space:
mode:
Diffstat (limited to 'components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Scripts')
-rw-r--r--components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Scripts/python/NetconfRpcExample.py6
-rw-r--r--components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Scripts/python/SamplePythonComponentNode.py4
-rw-r--r--components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Scripts/python/SampleRAProcessor.py6
3 files changed, 8 insertions, 8 deletions
diff --git a/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Scripts/python/NetconfRpcExample.py b/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Scripts/python/NetconfRpcExample.py
index 2fd6c6659..a11b0d4b7 100644
--- a/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Scripts/python/NetconfRpcExample.py
+++ b/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Scripts/python/NetconfRpcExample.py
@@ -42,11 +42,11 @@ class NetconfRpcExample(AbstractScriptComponentFunction):
nc.unlock()
nc.disconnect()
- except JavaException, err:
+ except JavaException as err:
log.error("Java Exception in the script {}", err)
- except Exception, err:
+ except Exception as err:
log.error("Python Exception in the script {}", err)
def recover(self, runtime_exception, execution_request):
- print "Recovering calling.." + PROPERTY_BLUEPRINT_BASE_PATH
+ print("Recovering calling.." + PROPERTY_BLUEPRINT_BASE_PATH)
return None
diff --git a/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Scripts/python/SamplePythonComponentNode.py b/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Scripts/python/SamplePythonComponentNode.py
index 86c9ff141..1ee41825d 100644
--- a/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Scripts/python/SamplePythonComponentNode.py
+++ b/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Scripts/python/SamplePythonComponentNode.py
@@ -5,9 +5,9 @@ from blueprint_constants import *
class SamplePythonComponentNode(JythonComponentFunction):
def process(self, execution_request):
- print "Processing calling..." + PROPERTY_BLUEPRINT_BASE_PATH
+ print("Processing calling..." + PROPERTY_BLUEPRINT_BASE_PATH)
return None
def recover(self, runtime_exception, execution_request):
- print "Recovering calling..." + PROPERTY_BLUEPRINT_BASE_PATH
+ print("Recovering calling..." + PROPERTY_BLUEPRINT_BASE_PATH)
return None
diff --git a/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Scripts/python/SampleRAProcessor.py b/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Scripts/python/SampleRAProcessor.py
index 30b9ff951..beb544b2c 100644
--- a/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Scripts/python/SampleRAProcessor.py
+++ b/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Scripts/python/SampleRAProcessor.py
@@ -10,7 +10,7 @@ class SampleRAProcessor(AbstractRAProcessor):
def process(self, execution_request):
AbstractRAProcessor.process(self, execution_request)
- print "Processing calling..." + PROPERTY_BLUEPRINT_BASE_PATH
+ print("Processing calling..." + PROPERTY_BLUEPRINT_BASE_PATH)
if self.ra_valid is True:
value = self.resolve_values_script(execution_request, self.value_to_resolve)
self.set_resource_data_value(execution_request, value)
@@ -20,10 +20,10 @@ class SampleRAProcessor(AbstractRAProcessor):
def recover(self, runtime_exception, execution_request):
AbstractRAProcessor.recover(self, runtime_exception, execution_request)
- print "Recovering calling..." + PROPERTY_BLUEPRINT_BASE_PATH
+ print("Recovering calling..." + PROPERTY_BLUEPRINT_BASE_PATH)
return None
def resolve_values_script(self, execution_request, value_to_resolve):
# TODO : DO business logic here
- print "Resolve value for " + value_to_resolve + " here..."
+ print("Resolve value for " + value_to_resolve + " here...")
return "test_python"