fix(appconfig): default omitted configuration profile type (#7037)

This commit is contained in:
Andre Kurait authored and GitHub committed 2026-10-31 05:09:39 -04:00
1 parent 9be236e289
commit 9f0856c691
6 files changed
+80 -7

No files matched your search

@@ -252,7 +252,8 @@ public class AppConfigService {
profile.setName((String) request.get("Name"));
profile.setDescription((String) request.get("Description"));
profile.setLocationUri((String) request.get("LocationUri"));
profile.setType((String) request.get("Type"));
String type = (String) request.get("Type");
profile.setType(type == null && "hosted".equals(profile.getLocationUri()) ? "AWS.Freeform" : type);
profileStore.put(profile.getId(), profile);
return profile;
}