From: aticig Date: Wed, 18 May 2022 15:55:23 +0000 (+0300) Subject: Fix Bug 2009 use existing volumes as instantiation parameters X-Git-Tag: v12.0.0rc1~7 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F80%2F12080%2F2;p=osm%2FNBI.git Fix Bug 2009 use existing volumes as instantiation parameters Change-Id: I8bed540aea41c23eef5ff4bf25f7ea03d77ba064 Signed-off-by: aticig --- diff --git a/osm_nbi/instance_topics.py b/osm_nbi/instance_topics.py index d371216..62df4f8 100644 --- a/osm_nbi/instance_topics.py +++ b/osm_nbi/instance_topics.py @@ -1488,7 +1488,7 @@ class NsLcmOpTopic(BaseTopic): if in_vdu["id"] == vdu["id"]: for volume in get_iterable(in_vdu.get("volume")): for volumed in get_iterable(vdu.get("virtual-storage-desc")): - if volumed["id"] == volume["name"]: + if volumed == volume["name"]: break else: raise EngineException( @@ -1508,7 +1508,7 @@ class NsLcmOpTopic(BaseTopic): ): vdu_if_names.add(iface.get("name")) - for in_iface in get_iterable(in_vdu["interface"]): + for in_iface in get_iterable(in_vdu.get("interface")): if in_iface["name"] in vdu_if_names: break else: