MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / get_configured_zones

Function get_configured_zones

tools/mock-cf-dns-api/app.py:350–358  ·  view source on GitHub ↗

Get zones from environment or use defaults.

()

Source from the content-addressed store, hash-verified

348
349
350def get_configured_zones():
351 """Get zones from environment or use defaults."""
352 zones_json = os.environ.get("MOCK_ZONES")
353 if zones_json:
354 try:
355 return json.loads(zones_json)
356 except json.JSONDecodeError:
357 print("Warning: Invalid MOCK_ZONES JSON, using defaults")
358 return DEFAULT_ZONES
359
360
361@app.route("/client/v4/zones", methods=["GET"])

Callers 2

list_zonesFunction · 0.85
get_zoneFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected