@utils.service_type('compute')
def do_availability_zone_list(cs, _args):
 try:
  availability_zones = cs.availability_zones.list()
 except exceptions.Forbidden as e:
  try:
   availability_zones = cs.availability_zones.list(detailed=False)
  except Exception:
   raise e
 result = []
 for zone in availability_zones:
  result += _treeizeAvailabilityZone(zone)
 _translate_availability_zone_keys(result)
 utils.print_list(result, ['Name', 'Status'], sortby_index=None)

@ utils . service_type ( 'compute' ) def do_availability_zone_list ( cs , _args ) : try : availability_zones = cs . availability_zones . list ( ) except exceptions . Forbidden as e : try : availability_zones = cs . availability_zones . list ( detailed = False ) except Exception : raise e result = [ ] for zone in availability_zones : result += _treeizeAvailabilityZone ( zone ) _translate_availability_zone_keys ( result ) utils . print_list ( result , [ 'Name' , 'Status' ] , sortby_index = None )
list all the availability zones .