diff options
author | Dan Timoney <dtimoney@att.com> | 2019-07-24 14:13:22 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-07-24 14:13:22 +0000 |
commit | 6a949fae1d76bd133a198c54c5a616c9835527b5 (patch) | |
tree | e9bd44047a55cdd54a73ef42763c4cd86298b314 /components/scripts/python/ccsdk_netconf/common.py | |
parent | 5e6fbc2ee27fc9514d026d17093ba7530184b55f (diff) | |
parent | a0140dea9c608d745767574ac621ca0060a2bddc (diff) |
Merge "Refactor Netconf script component parent."
Diffstat (limited to 'components/scripts/python/ccsdk_netconf/common.py')
-rw-r--r-- | components/scripts/python/ccsdk_netconf/common.py | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/components/scripts/python/ccsdk_netconf/common.py b/components/scripts/python/ccsdk_netconf/common.py index 896fb9128..f7ac1ac35 100644 --- a/components/scripts/python/ccsdk_netconf/common.py +++ b/components/scripts/python/ccsdk_netconf/common.py @@ -12,18 +12,17 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +from org.onap.ccsdk.cds.blueprintsprocessor.functions.resource.resolution import ResourceResolutionExtensionsKt -class ResolutionHelper: - def __init__(self, component_function): - self.component_function = component_function +class ResolutionHelper: - def resolve_and_generate_message_from_template_prefix(self, artifact_prefix): - return self.component_function.contentFromResolvedArtifact(artifact_prefix) + def __init__(self, component_function): + self.component_function = component_function - def resolve_and_generate_message(self, artifact_mapping, artifact_template): - return self.component_function.resolveAndGenerateMessage(artifact_mapping, - artifact_template) + def resolve_and_generate_message_from_template_prefix(self, artifact_prefix): + return ResourceResolutionExtensionsKt.contentFromResolvedArtifact(self.component_function, artifact_prefix) - def retrieve_resolved_template_from_database(self, key, artifact_template): - return self.component_function.storedContentFromResolvedArtifact(key, artifact_template) + def retrieve_resolved_template_from_database(self, key, artifact_template): + return ResourceResolutionExtensionsKt.storedContentFromResolvedArtifact(self.component_function, key, + artifact_template) |