Skip to content

Commit e6167b9

Browse files
authored
[Azure] Fix azure launch (skypilot-org#1619)
* fix azure zones * format
1 parent cbdc3bc commit e6167b9

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

sky/backends/cloud_vm_ray_backend.py

+9-7
Original file line numberDiff line numberDiff line change
@@ -1100,13 +1100,15 @@ def _retry_region_zones(
11001100
# but the optimizer that does the filtering will not be involved
11011101
# until the next region.
11021102
remaining_unblocked_zones = copy.deepcopy(zones)
1103-
for zone in zones:
1104-
for blocked_resources in self._blocked_resources:
1105-
if to_provision.copy(region=region.name,
1106-
zone=zone.name).should_be_blocked_by(
1107-
blocked_resources):
1108-
remaining_unblocked_zones.remove(zone)
1109-
break
1103+
if zones is not None:
1104+
for zone in zones:
1105+
for blocked_resources in self._blocked_resources:
1106+
if to_provision.copy(
1107+
region=region.name,
1108+
zone=zone.name).should_be_blocked_by(
1109+
blocked_resources):
1110+
remaining_unblocked_zones.remove(zone)
1111+
break
11101112
if zones and not remaining_unblocked_zones:
11111113
# Skip the region if all zones are blocked.
11121114
continue

0 commit comments

Comments
 (0)