def list_nodes_select(call=None):
 if (call == 'action'):
  raise SaltCloudSystemExit('The list_nodes_select function must be called with -f or --function.')
 ret = {}
 vm_properties = []
 selection = __opts__.get('query.selection')
 if (not selection):
  raise SaltCloudSystemExit('query.selection not found in /etc/salt/cloud')
 if ('id' in selection):
  vm_properties.append('name')
 if ('image' in selection):
  vm_properties.append('config.guestFullName')
 if ('size' in selection):
  vm_properties.extend(['config.hardware.numCPU', 'config.hardware.memoryMB'])
 if ('state' in selection):
  vm_properties.append('summary.runtime.powerState')
 if (('private_ips' in selection) or ('networks' in selection)):
  vm_properties.append('guest.net')
 if (('devices' in selection) or ('mac_address' in selection) or ('mac_addresses' in selection)):
  vm_properties.append('config.hardware.device')
 if ('storage' in selection):
  vm_properties.extend(['config.hardware.device', 'summary.storage.committed', 'summary.storage.uncommitted', 'summary.storage.unshared'])
 if ('files' in selection):
  vm_properties.append('layoutEx.file')
 if ('guest_id' in selection):
  vm_properties.append('config.guestId')
 if ('hostname' in selection):
  vm_properties.append('guest.hostName')
 if ('path' in selection):
  vm_properties.append('config.files.vmPathName')
 if ('tools_status' in selection):
  vm_properties.append('guest.toolsStatus')
 if (not vm_properties):
  return {}
 elif ('name' not in vm_properties):
  vm_properties.append('name')
 vm_list = salt.utils.vmware.get_mors_with_properties(_get_si(), vim.VirtualMachine, vm_properties)
 for vm in vm_list:
  ret[vm['name']] = _format_instance_info_select(vm, selection)
 return ret

def list_nodes_select ( call = None ) : if ( call == 'action' ) : raise SaltCloudSystemExit ( 'The list_nodes_select function must be called with -f or --function.' ) ret = { } vm_properties = [ ] selection = __opts__ . get ( 'query.selection' ) if ( not selection ) : raise SaltCloudSystemExit ( 'query.selection not found in /etc/salt/cloud' ) if ( 'id' in selection ) : vm_properties . append ( 'name' ) if ( 'image' in selection ) : vm_properties . append ( 'config.guestFullName' ) if ( 'size' in selection ) : vm_properties . extend ( [ 'config.hardware.numCPU' , 'config.hardware.memoryMB' ] ) if ( 'state' in selection ) : vm_properties . append ( 'summary.runtime.powerState' ) if ( ( 'private_ips' in selection ) or ( 'networks' in selection ) ) : vm_properties . append ( 'guest.net' ) if ( ( 'devices' in selection ) or ( 'mac_address' in selection ) or ( 'mac_addresses' in selection ) ) : vm_properties . append ( 'config.hardware.device' ) if ( 'storage' in selection ) : vm_properties . extend ( [ 'config.hardware.device' , 'summary.storage.committed' , 'summary.storage.uncommitted' , 'summary.storage.unshared' ] ) if ( 'files' in selection ) : vm_properties . append ( 'layoutEx.file' ) if ( 'guest_id' in selection ) : vm_properties . append ( 'config.guestId' ) if ( 'hostname' in selection ) : vm_properties . append ( 'guest.hostName' ) if ( 'path' in selection ) : vm_properties . append ( 'config.files.vmPathName' ) if ( 'tools_status' in selection ) : vm_properties . append ( 'guest.toolsStatus' ) if ( not vm_properties ) : return { } elif ( 'name' not in vm_properties ) : vm_properties . append ( 'name' ) vm_list = salt . utils . vmware . get_mors_with_properties ( _get_si ( ) , vim . VirtualMachine , vm_properties ) for vm in vm_list : ret [ vm [ 'name' ] ] = _format_instance_info_select ( vm , selection ) return ret
return a list of the vms that are on the provider .