def availability_zone_list(request):
    """Utility method to retrieve a list of availability zones."""
    try:
        return api.nova.availability_zone_list(request)
    except Exception:
        exceptions.handle(request,
                          _('Unable to retrieve Nova availability zones.'))
        return []
def availability_zone_list ( request ) : try : return api . nova . availability_zone_list ( request ) except Exception : exceptions . handle ( request , _ ( 'Unable to retrieve Nova availability zones.' ) ) return [ ]
Utility method to retrieve a list of availability zones.