We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb7c238 commit 2b44ea1Copy full SHA for 2b44ea1
1 file changed
ci/cloudbuild/scripts/find_zone.py
@@ -48,7 +48,7 @@ def zone_to_region(zone):
48
def get_free_quota(region):
49
result = json.loads(execute(f"gcloud compute regions describe {region} --format=json"))
50
quotas = result["quotas"]
51
- quotas = {q["metric"]: q for q in quotas}
+ quotas = {q["metric"]: q for q in quotas if "metric" in q}
52
53
# needs to have at least 4 available addresses
54
if quotas["IN_USE_ADDRESSES"]["limit"] - quotas["IN_USE_ADDRESSES"]["usage"] < 4:
0 commit comments