Skip to content
Snippets Groups Projects
Commit 29f8bcf2 authored by garciadeblas's avatar garciadeblas
Browse files

Fix oka_name to use git_name in lowercase for KSU operations


Change-Id: I31a045db6148774409dba36dc370d735a95d9009
Signed-off-by: default avatargarciadeblas <gerardo.garciadeblas@telefonica.com>
parent 656818e9
No related branches found
No related tags found
No related merge requests found
Pipeline #18077 passed with warnings with stage
in 5 minutes and 23 seconds
......@@ -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(
......
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment