- Fix for getting vnfd id, no object named vnfd_ref. 42/942/1
authorMichael Marchetti <mmarchetti@sandvine.com>
Thu, 12 Jan 2017 19:23:06 +0000 (14:23 -0500)
committerMichael Marchetti <mmarchetti@sandvine.com>
Thu, 12 Jan 2017 19:25:50 +0000 (14:25 -0500)
 - the failure causes the VNFD to not go active when utilizing a charm

Signed-off-by: Michael Marchetti <mmarchetti@sandvine.com>
rwcm/plugins/rwconman/rift/tasklets/rwconmantasklet/rwconman_config.py

index caf09b5..0abed99 100644 (file)
@@ -831,10 +831,10 @@ class ConfigManagerConfig(object):
 
         vnfr_name = vnfr.name
 
-        vnfd = yield from self.cmdts_obj.get_vnfd(vnfr.vnfd_ref)
+        vnfd = yield from self.cmdts_obj.get_vnfd(vnfr.vnfd.id)
         if vnfd is None:
             msg = "VNFR {}, unable to get VNFD {}". \
-                  format(vnfr_name, vnfr.vnfd_ref)
+                  format(vnfr_name, vnfr.vnfd.id)
             self._log.error(msg)
             raise InitialConfigError(msg)