ksu_params["profile"]["name"] = db_profile["name"]
ksu_params["profile"]["age_pubkey"] = db_profile.get("age_pubkey", "")
# Update ksu_params["oka"] with sw_catalog_path (when missing)
+ # TODO: remove this in favor of doing it in ODU workflow
for oka in ksu_params["oka"]:
if "sw_catalog_path" not in oka:
oka_id = oka["_id"]
oka_type = MAP_PROFILE[
db_oka.get("profile_type", "infra_controller_profiles")
]
- oka["sw_catalog_path"] = f"{oka_type}/{db_oka['git_name']}"
+ oka[
+ "sw_catalog_path"
+ ] = f"{oka_type}/{db_oka['git_name']}/templates"
op_params.append(ksu_params)
_, workflow_name = await self.odu.launch_workflow(
ksu_params["profile"]["name"] = db_profile["name"]
ksu_params["profile"]["age_pubkey"] = db_profile.get("age_pubkey", "")
# Update ksu_params["oka"] with sw_catalog_path (when missing)
+ # TODO: remove this in favor of doing it in ODU workflow
for oka in ksu_params["oka"]:
if "sw_catalog_path" not in oka:
oka_id = oka["_id"]
oka_type = MAP_PROFILE[
db_oka.get("profile_type", "infra_controller_profiles")
]
- oka["sw_catalog_path"] = f"{oka_type}/{db_oka['git_name']}"
+ oka[
+ "sw_catalog_path"
+ ] = f"{oka_type}/{db_oka['git_name']}/templates"
op_params.append(ksu_params)
_, workflow_name = await self.odu.launch_workflow(