From d7753fce51ff422df546353e46dbff1ce495e34a Mon Sep 17 00:00:00 2001 From: aticig Date: Wed, 18 May 2022 18:55:23 +0300 Subject: [PATCH] Fix Bug 2009 use existing volumes as instantiation parameters Change-Id: I8bed540aea41c23eef5ff4bf25f7ea03d77ba064 Signed-off-by: aticig --- osm_nbi/instance_topics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.25.1