Bug 2236 - Upgrade of Helm Charts is failing when the Helm Chart is embeded in the... 88/13288/1
authorGabriel Cuba <gcuba@whitestack.com>
Wed, 26 Apr 2023 15:50:30 +0000 (10:50 -0500)
committerGabriel Cuba <gcuba@whitestack.com>
Wed, 26 Apr 2023 15:50:30 +0000 (10:50 -0500)
Change-Id: Ib1675664d7eb2363444ba5b0d9438b8673ae8715
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
osm_lcm/ns.py

index dd7ff3e..63a9b67 100644 (file)
@@ -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"