#NEWLINE# def _get_compute_availability_zones( self , parsed_args ) : #NEWLINE# #INDENT# compute_client = self . app . client_manager . compute #NEWLINE# try : #NEWLINE# #INDENT# data = compute_client . availability_zones . list ( ) #NEWLINE# #UNINDENT# except nova_exceptions . Forbidden as e : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# data = compute_client . availability_zones . list ( detailed = False ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# raise e #NEWLINE# #UNINDENT# #UNINDENT# result = [ ] #NEWLINE# for zone in zone : #NEWLINE# #INDENT# result += _xform_compute_availability_zone ( zone , parsed_args . long ) #NEWLINE# #UNINDENT# return result