Fix oka_name to use git_name in lowercase for KSU operations
Change-Id: I31a045db6148774409dba36dc370d735a95d9009
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/osm_lcm/k8s.py b/osm_lcm/k8s.py
index 78cbdfd..b86e133 100644
--- a/osm_lcm/k8s.py
+++ b/osm_lcm/k8s.py
@@ -1740,7 +1740,7 @@
]
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 453b43f..5937924 100644
--- a/osm_lcm/odu_libs/ksu.py
+++ b/osm_lcm/odu_libs/ksu.py
@@ -48,7 +48,7 @@
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 @@
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"