File tree 1 file changed +9
-7
lines changed
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(
1100
1100
# but the optimizer that does the filtering will not be involved
1101
1101
# until the next region.
1102
1102
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
1110
1112
if zones and not remaining_unblocked_zones :
1111
1113
# Skip the region if all zones are blocked.
1112
1114
continue
You can’t perform that action at this time.
0 commit comments