From 9984d0e1c4cd31caea66797d7f7f282366921111 Mon Sep 17 00:00:00 2001 From: tierno Date: Mon, 14 Sep 2020 12:11:32 +0000 Subject: [PATCH] fix vnf_relations issue when there are more than one Change-Id: I6e8e6d6301562a64eec78c73335fb46568306e6c Signed-off-by: tierno --- osm_lcm/ns.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osm_lcm/ns.py b/osm_lcm/ns.py index 48dbae3..7160b99 100644 --- a/osm_lcm/ns.py +++ b/osm_lcm/ns.py @@ -2377,7 +2377,7 @@ class NsLcm(LcmBase): db_nsr = self.db.get_one("nsrs", {"_id": nsr_id}) # for each defined NS relation, find the VCA's related - for r in ns_relations: + for r in ns_relations.copy(): from_vca_ee_id = None to_vca_ee_id = None from_vca_endpoint = None @@ -2422,7 +2422,7 @@ class NsLcm(LcmBase): pass # for each defined VNF relation, find the VCA's related - for r in vnf_relations: + for r in vnf_relations.copy(): from_vca_ee_id = None to_vca_ee_id = None from_vca_endpoint = None -- 2.25.1