From 3f6d77ed2a8624a0bf7b670b57c6b59b21207ad7 Mon Sep 17 00:00:00 2001 From: rajesh velandy Date: Thu, 2 Nov 2017 20:37:03 +0000 Subject: [PATCH] Bug 412 - Fixed an unitialized vnfr access in vnf config primitive Signed-off-by: rajesh velandy --- .../plugins/rwconman/rift/tasklets/rwconmantasklet/jujuconf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rwcm/plugins/rwconman/rift/tasklets/rwconmantasklet/jujuconf.py b/rwcm/plugins/rwconman/rift/tasklets/rwconmantasklet/jujuconf.py index b003df8d..6cf549a4 100644 --- a/rwcm/plugins/rwconman/rift/tasklets/rwconmantasklet/jujuconf.py +++ b/rwcm/plugins/rwconman/rift/tasklets/rwconmantasklet/jujuconf.py @@ -291,6 +291,7 @@ class JujuConfigPlugin(riftcm_config_plugin.RiftCMConfigPluginBase): self._log.debug("VNF config= %s", vnf_config.as_dict()) try: + vnfr = self._juju_vnfs[vnfr_id].vnfr service = vnfr['vnf_juju_name'] self._log.debug("VNF config %s", vnf_config) configs = vnf_config.config_primitive @@ -419,7 +420,7 @@ class JujuConfigPlugin(riftcm_config_plugin.RiftCMConfigPluginBase): primitive) self._log.debug("VNFR {} primitive {} exec status: {}". - format(vnfr.name, primitive.name, rc)) + format(vnfr_id, primitive.name, rc)) output.execution_status = rc output.execution_id = exec_id output.execution_error_details = err -- 2.25.1