From: Guillermo Calvino Date: Tue, 1 Feb 2022 17:59:50 +0000 (+0100) Subject: Bug 1872 fix - Fix issue executing actions X-Git-Tag: v11.0.2^0 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=bbcfaea856ea7bb610db23b4ec53e3bea5ae073a;p=osm%2FLCM.git Bug 1872 fix - Fix issue executing actions Change-Id: Ia0bf89036b7601f1ba9f3fe9b724c6693f1ea79a Signed-off-by: Guillermo Calvino --- diff --git a/osm_lcm/ns.py b/osm_lcm/ns.py index 050c8d9..7f5a710 100644 --- a/osm_lcm/ns.py +++ b/osm_lcm/ns.py @@ -4858,6 +4858,13 @@ class NsLcm(LcmBase): db_vnfr = self.db.get_one( "vnfrs", {"member-vnf-index-ref": vnf_index, "nsr-id-ref": nsr_id} ) + if db_vnfr.get("kdur"): + kdur_list = [] + for kdur in db_vnfr["kdur"]: + if kdur.get("additionalParams"): + kdur["additionalParams"] = json.loads(kdur["additionalParams"]) + kdur_list.append(kdur) + db_vnfr["kdur"] = kdur_list step = "Getting vnfd from database" db_vnfd = self.db.get_one("vnfds", {"_id": db_vnfr["vnfd-id"]}) else: