Convert scripts to python3
[ccsdk/cds.git] / components / scripts / python / ccsdk_blueprints / sample_ra_processor_function.py
index 6ec5d82..5e78981 100644 (file)
@@ -1,18 +1,14 @@
-from abstract_ra_processor import AbstractRAProcessor
-from blueprint_constants import *
+from .abstract_ra_processor import AbstractRAProcessor
+from .blueprint_constants import *
 
 
 class SampleRAProcessorFunction(AbstractRAProcessor):
 
-    def __init__(self):
-        AbstractRAProcessor.__init__(self)
-
-    def process(self, execution_request):
-        AbstractRAProcessor.process(self, execution_request)
-        print "Processing calling.." + PROPERTY_BLUEPRINT_BASE_PATH
+    def process(self, resource_assignment):
+        print("Processing calling.." + PROPERTY_BLUEPRINT_BASE_PATH)
+        self.set_resource_data_value(resource_assignment, "")
         return None
 
-    def recover(self, runtime_exception, execution_request):
-        AbstractRAProcessor.recover(self, runtime_exception, execution_request)
-        print "Recovering calling.." + PROPERTY_BLUEPRINT_BASE_PATH
+    def recover(self, runtime_exception, resource_assignment):
+        print("Recovering calling.." + PROPERTY_BLUEPRINT_BASE_PATH)
         return None