#NEWLINE# def take_action( self , parsed_args ) : #NEWLINE# #INDENT# compute_client = self . app . client_manager . compute #NEWLINE# data = compute_client . aggregates . list ( ) #NEWLINE# if parsed_args . long : #NEWLINE# #INDENT# for d in data : #NEWLINE# #INDENT# if ( 'availability_zone' in d . metadata ) : #NEWLINE# #INDENT# d . metadata . pop ( 'availability_zone' ) #NEWLINE# #UNINDENT# #UNINDENT# column_headers = ( 'ID' , 'Name' , 'Availability Zone' , 'Properties' ) #NEWLINE# columns = ( 'ID' , 'Name' , 'Availability Zone' , 'Metadata' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# column_headers = columns = ( 'ID' , 'Name' , 'Availability Zone' ) #NEWLINE# #UNINDENT# return ( column_headers , ( utils . get_item_properties ( s , columns ) for s in data ) )