Merge "Don't insert "Any Availaibility Zone" on single-AZ configurations"
This commit is contained in:
commit
1d88989b2c
@ -243,10 +243,10 @@ class SetInstanceDetailsAction(workflows.Action):
|
||||
zone_list = [(zone.zoneName, zone.zoneName)
|
||||
for zone in zones if zone.zoneState['available']]
|
||||
zone_list.sort()
|
||||
if zone_list:
|
||||
zone_list.insert(0, ("", _("Any Availability Zone")))
|
||||
else:
|
||||
if not zone_list:
|
||||
zone_list.insert(0, ("", _("No availability zones found.")))
|
||||
elif len(zone_list) > 1:
|
||||
zone_list.insert(0, ("", _("Any Availability Zone")))
|
||||
return zone_list
|
||||
|
||||
def get_help_text(self):
|
||||
|
Loading…
Reference in New Issue
Block a user