#NEWLINE# def do_list_organizations( self , line ) : #NEWLINE# #INDENT# 'Get list of organization on DCNM.' #NEWLINE# org_list = self . dcnm_client . list_organizations ( ) #NEWLINE# if ( not org ) : #NEWLINE# #INDENT# print ( 'No organization found.' ) #NEWLINE# return #NEWLINE# #UNINDENT# org_table = PrettyTable ( [ 'Organization Name' ] ) #NEWLINE# for org in org_list : #NEWLINE# #INDENT# org_table . add_row ( [ org [ 'organizationName' ] ] ) #NEWLINE# #UNINDENT# print ( org_table )