From 0ceae9a95032d5d101c3eb19354733ab40c53200 Mon Sep 17 00:00:00 2001 From: Gabriel Cuba Date: Wed, 26 Apr 2023 10:50:30 -0500 Subject: [PATCH] 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 --- osm_lcm/ns.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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" -- 2.25.1