From 25da7f12f56886d44053935561e64b24a910dd96 Mon Sep 17 00:00:00 2001 From: David Garcia Date: Fri, 28 May 2021 12:08:18 +0200 Subject: [PATCH] Fix 1533 (nscharms): read juju from descriptor In the VNFD, the juju section has been removed and included inside the execution environment list. Since then basic_12 (nscharms) has not been properly working because we are only looking for the execution-environment-liist key inside the descriptor, but that does not apply to the NSD. Additionally, I fixed the deletion of the nscharm, that was failing due to the member-vnf-index key not existing in the deployed VCA. Change-Id: Icb3220f28e373cf8ac3f978c9a3a83b179540512 Signed-off-by: David Garcia --- osm_lcm/ns.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/osm_lcm/ns.py b/osm_lcm/ns.py index ce7be13..7738016 100644 --- a/osm_lcm/ns.py +++ b/osm_lcm/ns.py @@ -2469,6 +2469,8 @@ class NsLcm(LcmBase): self.logger.debug(logging_text + "_deploy_n2vc vnfd_id={}, vdu_id={}".format(vnfd_id, vdu_id)) if "execution-environment-list" in descriptor_config: ee_list = descriptor_config.get("execution-environment-list", []) + elif "juju" in descriptor_config: + ee_list = [descriptor_config] # ns charms else: # other types as script are not supported ee_list = [] -- 2.25.1