#NEWLINE# def take_action( self , parsed_args ) : #NEWLINE# #INDENT# if parsed_args . long : #NEWLINE# #INDENT# columns = ( 'Zone Name' , 'Zone Status' , 'Zone Resource' , 'Host Name' , 'Service Name' , 'Service Status' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# columns = ( 'Zone Name' , 'Zone Status' ) #NEWLINE# #UNINDENT# show_all = ( ( not parsed_args . compute ) and ( not parsed_args . volume ) and ( not parsed_args . network ) ) #NEWLINE# result = [ ] #NEWLINE# if ( parsed_args . compute or show_all ) : #NEWLINE# #INDENT# result += self . _get_compute_availability_zones ( parsed_args ) #NEWLINE# #UNINDENT# if ( parsed_args . volume or show_all ) : #NEWLINE# #INDENT# result += self . _get_volume_availability_zones ( parsed_args ) #NEWLINE# #UNINDENT# if ( parsed_args . network or show_all ) : #NEWLINE# #INDENT# result += self . _get_network_availability_zones ( parsed_args ) #NEWLINE# #UNINDENT# return ( columns , ( utils . get_dict_properties ( s , columns ) for s in result ) )