From: tierno Date: Thu, 26 Apr 2018 14:27:47 +0000 (+0200) Subject: fixing problem of vim_type at creating vim_account X-Git-Tag: v4.0.0~17 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=b6434217e971a04d0ae8f1d283d7a007dab9a1c7;p=osm%2FRO.git fixing problem of vim_type at creating vim_account Change-Id: Ic781aa3b504ef8eb681e39d0c027d620f4ef19dd Signed-off-by: tierno --- diff --git a/osm_ro/nfvo.py b/osm_ro/nfvo.py index b8371285..895a9569 100644 --- a/osm_ro/nfvo.py +++ b/osm_ro/nfvo.py @@ -333,7 +333,7 @@ def get_vim(mydb, nfvo_tenant=None, datacenter_id=None, datacenter_name=None, da for vim in vims: extra={'datacenter_tenant_id': vim.get('datacenter_tenant_id'), 'datacenter_id': vim.get('datacenter_id'), - 'vim_type': vim.get('type')} + '_vim_type_internal': vim.get('type')} if vim["config"]: extra.update(yaml.load(vim["config"])) if vim.get('dt_config'): @@ -3524,7 +3524,7 @@ def instantiate_vnf(mydb, sce_vnf, params, params_out, rollbackList): image_uuid = vm['image_id'] if vm.get("image_list"): for alternative_image in vm["image_list"]: - if alternative_image["vim_type"] == vim["config"]["vim_type"]: + if alternative_image["vim_type"] == vim["config"]["_vim_type_internal"]: image_uuid = alternative_image['image_id'] break image_dict = mydb.get_table_by_uuid_name("images", image_uuid)