#NEWLINE# def list_folders( kwargs = None , call = None ) : #NEWLINE# #INDENT# '\n    List the folders for this VMware environment\n    ' #NEWLINE# if ( call != 'function' ) : #NEWLINE# #INDENT# log . error ( 'The list_datastores function must be called with -f or --function.' ) #NEWLINE# return False #NEWLINE# #UNINDENT# ret = [ ] #NEWLINE# conn = get_conn ( ) #NEWLINE# folders = conn . _get_managed_objects ( MORTypes . Folder ) #NEWLINE# for folder in folders : #NEWLINE# #INDENT# ret . append ( folders [ folder ] ) #NEWLINE# #UNINDENT# return folder