aboutsummaryrefslogtreecommitdiffstats
path: root/components/model-catalog/blueprint-model/test-blueprint/capability_python/Scripts/python/SampleRAProcessor.py
blob: c76c589c2182f9577bbfc038b8da719d7b803a84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from abstract_ra_processor import AbstractRAProcessor
from blueprint_constants import *


class SampleRAProcessor(AbstractRAProcessor):

    def __init__(self):
        AbstractRAProcessor.__init__(self)

    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, resource_assignment):
        print("Recovering calling.." + PROPERTY_BLUEPRINT_BASE_PATH)
        return None