else:
raise ClientException("Unexpected failure when reading the profile")
+ profile_type_mapping = {
+ "infra-controller-profile": "infra_controller_profiles",
+ "infra-config-profile": "infra_config_profiles",
+ "app-profile": "app_profiles",
+ "resource-profile": "resource_profiles",
+ }
+
logger.debug("")
if "name" not in ksu:
raise ClientException("A name must be provided for each KSU")
)
else:
raise ClientException("A profile id or name must be provided for each KSU")
+ # Finally update the profile type to use the string expected by NBI
+ ksu_profile["profile_type"] = profile_type_mapping[ksu_profile_type]
else:
raise ClientException("A profile must be provided for each KSU")
if "oka" in ksu: