Code Review
/
ccsdk
/
cds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Convert scripts to python3
[ccsdk/cds.git]
/
components
/
scripts
/
python
/
ccsdk_blueprints
/
abstract_ra_processor.py
diff --git
a/components/scripts/python/ccsdk_blueprints/abstract_ra_processor.py
b/components/scripts/python/ccsdk_blueprints/abstract_ra_processor.py
index
05fe2e0
..
9f0fd4a
100644
(file)
--- a/
components/scripts/python/ccsdk_blueprints/abstract_ra_processor.py
+++ b/
components/scripts/python/ccsdk_blueprints/abstract_ra_processor.py
@@
-9,11
+9,11
@@
from org.onap.ccsdk.cds.controllerblueprints.core import \
class AbstractRAProcessor(ResourceAssignmentProcessor):
def process(self, resource_assignment):
class AbstractRAProcessor(ResourceAssignmentProcessor):
def process(self, resource_assignment):
- print
"Processing.."
+ print
("Processing..")
return None
def recover(self, runtime_exception, resource_assignment):
return None
def recover(self, runtime_exception, resource_assignment):
- print
"Recovering.."
+ print
("Recovering..")
return None
def set_resource_data_value(self, resource_assignment, value):
return None
def set_resource_data_value(self, resource_assignment, value):
@@
-24,6
+24,6
@@
class AbstractRAProcessor(ResourceAssignmentProcessor):
else:
ResourceAssignmentUtils.Companion.setFailedResourceDataValue(
resource_assignment, "Fail to resolve value")
else:
ResourceAssignmentUtils.Companion.setFailedResourceDataValue(
resource_assignment, "Fail to resolve value")
- except BluePrintProcessorException
,
err:
+ except BluePrintProcessorException
as
err:
raise BluePrintProcessorException(
"Error on resource assignment. Message = " + err.message)
raise BluePrintProcessorException(
"Error on resource assignment. Message = " + err.message)