Fix removing the vnf relations from the right list 81/9881/2
authorDavid Garcia <david.garcia@canonical.com>
Tue, 25 Aug 2020 11:17:25 +0000 (13:17 +0200)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Tue, 20 Oct 2020 14:10:23 +0000 (14:10 +0000)
Change-Id: Ib5fadaa6ad266d1756969a01ce34f82389c48d61
Signed-off-by: David Garcia <david.garcia@canonical.com>
osm_lcm/ns.py

index 64589ff..48dbae3 100644 (file)
@@ -2458,11 +2458,11 @@ class NsLcm(LcmBase):
                                     if vca.get('vdu_id') == r.get('entities')[0].get('id'):
                                         if vca_status.get('status') == 'BROKEN':
                                             # peer broken: remove relation from list
-                                            ns_relations.remove(r)
+                                            vnf_relations.remove(r)
                                     if vca.get('vdu_id') == r.get('entities')[1].get('id'):
                                         if vca_status.get('status') == 'BROKEN':
                                             # peer broken: remove relation from list
-                                            ns_relations.remove(r)
+                                            vnf_relations.remove(r)
                         except Exception:
                             # ignore
                             pass