Fix bug for ns-primitives (manual testing) 96/10096/5
authorDavid Garcia <david.garcia@canonical.com>
Thu, 10 Dec 2020 19:10:53 +0000 (20:10 +0100)
committergarciadav <david.garcia@canonical.com>
Mon, 14 Dec 2020 20:13:25 +0000 (21:13 +0100)
db_vnfr was None. Therefore, the get_osm_params was raising some errors.
That's fixed now

Change-Id: Ied4b0fdb9f374dbfaeb0f4947e75a8a310678a1e
Signed-off-by: David Garcia <david.garcia@canonical.com>
osm_lcm/ns.py

index c7e0184..29721b3 100644 (file)
@@ -1886,7 +1886,7 @@ class NsLcm(LcmBase):
                 vdu_name = None
 
                 # Get additional parameters
-                deploy_params = {"OSM": get_osm_params(db_vnfr)}
+                deploy_params = {"OSM": {"vim_account_id": ns_params["vimAccountId"]}}
                 if db_nsr.get("additionalParamsForNs"):
                     deploy_params.update(parse_yaml_strings(db_nsr["additionalParamsForNs"].copy()))
                 base_folder = nsd["_admin"]["storage"]