#NEWLINE# def glance_collector( self , destination , resources ) : #NEWLINE# #INDENT# '\n        Glance data collector method.\n        ' #NEWLINE# collected_items = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . chose_destination_cloud ( destination ) #NEWLINE# image_list = [ x for x in self . cloud_info . glanceclient . images . list ( ) ] #NEWLINE# if ( 'images' in resources ) : #NEWLINE# #INDENT# _image_list = [ x . __dict__ [ '_info' ] for x in image_list ] #NEWLINE# collected_items [ 'images' ] = _image_list #NEWLINE# #UNINDENT# if ( 'members' in resources ) : #NEWLINE# #INDENT# members = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for image in image_list : #NEWLINE# #INDENT# member_list = self . cloud_info . glanceclient . image_members . list ( image . id ) #NEWLINE# members [ image . name ] = [ member . __dict__ [ '_info' ] for member in member_list ] #NEWLINE# #UNINDENT# collected_items [ 'members' ] = members #NEWLINE# #UNINDENT# return collected_items