From 55fe3970aa7fb2dad4d5d13409fdd3efcd65bec2 Mon Sep 17 00:00:00 2001 From: tierno Date: Fri, 29 Mar 2019 08:50:12 +0000 Subject: [PATCH] fix bug 654. First vdu's placement-groups does not work Change-Id: Idc935fa13ab6b8e138472de4ebc932810a5e9c5b Signed-off-by: tierno --- osm_ro/nfvo.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/osm_ro/nfvo.py b/osm_ro/nfvo.py index 281b8f96..f65f08f9 100644 --- a/osm_ro/nfvo.py +++ b/osm_ro/nfvo.py @@ -1291,8 +1291,7 @@ def new_vnfd_v3(mydb, tenant_id, vnf_descriptor): "'member-vdus':'{vdu}'. Reference to a non-existing vdu".format( vnf=vnfd_id, pg=pg_name, vdu=vdu_id), httperrors.Bad_Request) - if vdu_id2db_table_index[vdu_id]: - db_vms[vdu_id2db_table_index[vdu_id]]["availability_zone"] = pg_name + db_vms[vdu_id2db_table_index[vdu_id]]["availability_zone"] = pg_name # TODO consider the case of isolation and not colocation # if pg.get("strategy") == "ISOLATION": -- 2.25.1