Fix oka_name to use git_name in lowercase for KSU operations 95/14895/2
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 24 Jan 2025 13:24:41 +0000 (14:24 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 24 Jan 2025 15:39:33 +0000 (16:39 +0100)
Change-Id: I31a045db6148774409dba36dc370d735a95d9009
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osm_lcm/k8s.py
osm_lcm/odu_libs/ksu.py

index 78cbdfd..b86e133 100644 (file)
@@ -1740,7 +1740,7 @@ class KsuLcm(GitOpsLcm):
                     ]
                     oka[
                         "sw_catalog_path"
-                    ] = f"{oka_type}/{db_oka['git_name']}/templates"
+                    ] = f"{oka_type}/{db_oka['git_name'].lower()}/templates"
             op_params.append(ksu_params)
 
         _, workflow_name = await self.odu.launch_workflow(
index 453b43f..5937924 100644 (file)
@@ -48,7 +48,7 @@ async def create_ksus(self, op_id, op_params_list, content_list):
         oka_type = MAP_PROFILE[
             oka_item.get("profile_type", "infra_controller_profiles")
         ]
-        oka_name = oka_item["git_name"]
+        oka_name = oka_item["git_name"].lower()
         oka_path = f"{oka_type}/{oka_name}/templates"
 
     workflow_template = "launcher-create-ksu-hr.j2"
@@ -196,7 +196,7 @@ async def update_ksus(self, op_id, op_params_list, content_list):
         oka_type = MAP_PROFILE[
             oka_item.get("profile_type", "infra_controller_profiles")
         ]
-        oka_name = oka_item["git_name"]
+        oka_name = oka_item["git_name"].lower()
         oka_path = f"{oka_type}/{oka_name}/templates"
 
     workflow_template = "launcher-update-ksu-hr.j2"