#NEWLINE# def list_images( self , location = None ) : #NEWLINE# #INDENT# params = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if ( location is not None ) : #NEWLINE# #INDENT# params [ 'datacenter' ] = location . id #NEWLINE# #UNINDENT# images = self . _to_images ( self . connection . request ( '/api/grid/image/list' , params ) . object ) #NEWLINE# return images