From: tierno Date: Tue, 18 Dec 2018 15:19:27 +0000 (+0000) Subject: fix issue creating instance of only networks without scenario X-Git-Tag: v5.0.3~10 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=d108c41f5484ccb5b8d358ee313d038786333580;p=osm%2FRO.git fix issue creating instance of only networks without scenario Change-Id: Ibeb3a9f6176c7bc5b9178661d88f37bf204d11e0 Signed-off-by: tierno --- diff --git a/osm_ro/nfvo.py b/osm_ro/nfvo.py index 7225da5d..12906900 100644 --- a/osm_ro/nfvo.py +++ b/osm_ro/nfvo.py @@ -3253,7 +3253,7 @@ def create_instance(mydb, tenant_id, instance_dict): lookfor_network = True lookfor_filter["name"] = sce_net.get("vim_network_name") elif sce_net["external"]: - if sce_net['vim_id'] is not None: + if sce_net.get('vim_id'): # there is a netmap at datacenter_nets database # TODO REVISE!!!! create_network = False lookfor_network = True