def list_nodes(call=None):
 if (call == 'action'):
  raise SaltCloudSystemExit('The list_nodes function must be called with -f or --function.')
 nodes = list_nodes_full()
 ret = {}
 for (instance_id, full_node) in nodes.items():
  ret[instance_id] = {'id': full_node['id'], 'image': full_node['image'], 'size': full_node['size'], 'state': full_node['state'], 'public_ips': full_node['public_ips'], 'private_ips': full_node['private_ips']}
 return ret

def list_nodes ( call = None ) : if ( call == 'action' ) : raise SaltCloudSystemExit ( 'The list_nodes function must be called with -f or --function.' ) nodes = list_nodes_full ( ) ret = { } for ( instance_id , full_node ) in nodes . items ( ) : ret [ instance_id ] = { 'id' : full_node [ 'id' ] , 'image' : full_node [ 'image' ] , 'size' : full_node [ 'size' ] , 'state' : full_node [ 'state' ] , 'public_ips' : full_node [ 'public_ips' ] , 'private_ips' : full_node [ 'private_ips' ] } return ret
because this module is not specific to any cloud providers .