From: rajesh velandy Date: Thu, 2 Nov 2017 20:37:03 +0000 (+0000) Subject: Bug 412 - Fixed an unitialized vnfr access in vnf config primitive X-Git-Tag: v3.0.0rc15 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=262167efdc510c9f8fe4a83186ae3dc2189ed132;p=osm%2FSO.git Bug 412 - Fixed an unitialized vnfr access in vnf config primitive Signed-off-by: rajesh velandy --- 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