From: Gabriel Cuba Date: Wed, 26 Apr 2023 15:50:30 +0000 (-0500) Subject: Bug 2236 - Upgrade of Helm Charts is failing when the Helm Chart is embeded in the... X-Git-Tag: release-v14.0-start~17 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=0ceae9a95032d5d101c3eb19354733ab40c53200;p=osm%2FLCM.git Bug 2236 - Upgrade of Helm Charts is failing when the Helm Chart is embeded in the package Change-Id: Ib1675664d7eb2363444ba5b0d9438b8673ae8715 Signed-off-by: Gabriel Cuba --- diff --git a/osm_lcm/ns.py b/osm_lcm/ns.py index dd7ff3e..63a9b67 100644 --- a/osm_lcm/ns.py +++ b/osm_lcm/ns.py @@ -5010,9 +5010,10 @@ class NsLcm(LcmBase): del desc_params["kdu_model"] else: kdu_model = kdu.get("kdu-model") - parts = kdu_model.split(sep=":") - if len(parts) == 2: - kdu_model = parts[0] + if kdu_model.count("/") < 2: # helm chart is not embedded + parts = kdu_model.split(sep=":") + if len(parts) == 2: + kdu_model = parts[0] if desc_params.get("kdu_atomic_upgrade"): atomic_upgrade = desc_params.get( "kdu_atomic_upgrade"