#NEWLINE# def list_nodes_full( call = None ) : #NEWLINE# #INDENT# ' Return a list of the BareMetal servers that are on the provider.\n    ' #NEWLINE# if ( call == 'action' ) : #NEWLINE# #INDENT# raise SaltCloudSystemExit ( 'list_nodes_full must be called with -f or --function' ) #NEWLINE# #UNINDENT# items = query ( method = 'servers' ) #NEWLINE# ret = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for node in items [ 'servers' ] : #NEWLINE# #INDENT# ret [ node [ 'name' ] ] = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for item in node : #NEWLINE# #INDENT# value = ret [ item ] #NEWLINE# ret [ node [ 'name' ] ] [ item ] = value #NEWLINE# #UNINDENT# #UNINDENT# return ret