From 29f8bcf2c86be3b0d55fb5dccc621134c7ac6605 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Fri, 24 Jan 2025 14:24:41 +0100 Subject: [PATCH] Fix oka_name to use git_name in lowercase for KSU operations Change-Id: I31a045db6148774409dba36dc370d735a95d9009 Signed-off-by: garciadeblas --- osm_lcm/k8s.py | 2 +- osm_lcm/odu_libs/ksu.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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" -- 2.25.1