From 8d6feb2bbc71be68bb2a1fb01c01c948a1af3b58 Mon Sep 17 00:00:00 2001 From: Pedro Escaleira Date: Thu, 31 Mar 2022 00:08:05 +0100 Subject: [PATCH] Bug 1950 fixed to update the deploy_params_kdu dict instead of overwriting it Change-Id: I47ffa741679a6942bd3f4e46ec0a382e8a55422c Signed-off-by: Pedro Escaleira --- osm_lcm/ns.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/osm_lcm/ns.py b/osm_lcm/ns.py index 17a892d1..852cc546 100644 --- a/osm_lcm/ns.py +++ b/osm_lcm/ns.py @@ -2344,7 +2344,9 @@ class NsLcm(LcmBase): kdur_list = [] for kdur in vnfr["kdur"]: if kdur.get("additionalParams"): - kdur["additionalParams"] = json.loads(kdur["additionalParams"]) + kdur["additionalParams"] = json.loads( + kdur["additionalParams"] + ) kdur_list.append(kdur) vnfr["kdur"] = kdur_list @@ -2542,8 +2544,8 @@ class NsLcm(LcmBase): ) deploy_params_kdu = {"OSM": get_osm_params(db_vnfr)} if kdur.get("additionalParams"): - deploy_params_kdu = parse_yaml_strings( - kdur["additionalParams"] + deploy_params_kdu.update( + parse_yaml_strings(kdur["additionalParams"].copy()) ) self._deploy_n2vc( @@ -4895,7 +4897,9 @@ class NsLcm(LcmBase): kdur_list = [] for kdur in db_vnfr["kdur"]: if kdur.get("additionalParams"): - kdur["additionalParams"] = json.loads(kdur["additionalParams"]) + kdur["additionalParams"] = json.loads( + kdur["additionalParams"] + ) kdur_list.append(kdur) db_vnfr["kdur"] = kdur_list step = "Getting vnfd from database" -- 2.25.1