We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b68259f commit 2231c31Copy full SHA for 2231c31
1 file changed
skills/azure-architecture-autopilot/scripts/cli.py
@@ -137,7 +137,15 @@ def _normalize_services(services):
137
if isinstance(svc.get("details"), str):
138
svc["details"] = [svc["details"]]
139
if isinstance(svc.get("private"), str):
140
- svc["private"] = bool(svc["private"])
+ val = svc["private"].lower()
141
+ if val in ("true", "1", "yes", "on"):
142
+ svc["private"] = True
143
+ elif val in ("false", "0", "no", "off"):
144
+ svc["private"] = False
145
+ else:
146
+ # Log warning for invalid values
147
+ print(f"WARNING: Invalid boolean value '{svc['private']}' for 'private' field. Defaulting to False.", file=sys.stderr)
148
149
return services
150
151
0 commit comments