File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments