#NEWLINE# def _get_volume_availability_zones( self , parsed_args ) : #NEWLINE# #INDENT# volume_client = self . app . client_manager . volume #NEWLINE# data = [ ] #NEWLINE# try : #NEWLINE# #INDENT# data = volume_client . availability_zones . list ( ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# self . log . debug ( ( 'Volume availability zone exception: ' + str ( e ) ) ) #NEWLINE# if parsed_args . volume : #NEWLINE# #INDENT# message = 'Availability zones list not supported by Block Storage API' #NEWLINE# self . log . warning ( message ) #NEWLINE# #UNINDENT# #UNINDENT# result = [ ] #NEWLINE# for zone in data : #NEWLINE# #INDENT# result += _xform_volume_availability_zone ( zone ) #NEWLINE# #UNINDENT# return result