From: garciadeblas Date: Fri, 24 Jan 2025 13:24:41 +0000 (+0100) Subject: Fix oka_name to use git_name in lowercase for KSU operations X-Git-Tag: v17.0.1~21 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=1ad4e8890885d6f2870acc708e7b24d80dd46754;p=osm%2FLCM.git Fix oka_name to use git_name in lowercase for KSU operations Change-Id: I31a045db6148774409dba36dc370d735a95d9009 Signed-off-by: garciadeblas --- diff --git a/osm_lcm/k8s.py b/osm_lcm/k8s.py index 78cbdfda..b86e1337 100644 --- a/osm_lcm/k8s.py +++ b/osm_lcm/k8s.py @@ -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( diff --git a/osm_lcm/odu_libs/ksu.py b/osm_lcm/odu_libs/ksu.py index 453b43f4..59379249 100644 --- a/osm_lcm/odu_libs/ksu.py +++ b/osm_lcm/odu_libs/ksu.py @@ -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"