code: def list_nodes_min(call=None):
      '''
      Return a list of the VMs that are on the provider. Only a list of VM names and
      their state is returned. This is the minimum amount of information needed to
      check for existing VMs.
  
      .. versionadded:: 2015.8.0
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-cloud -f list_nodes_min packet-provider
          salt-cloud --function list_nodes_min packet-provider
      '''
      if call == 'action':
          raise SaltCloudSystemExit(
              'The list_nodes_min function must be called with -f or --function.'
          )
  
      ret = {}
  
      for device in get_devices_by_token():
          ret[device.hostname] = {'id': device.id, 'state': device.state}
  
      return ref list_nodes_min(call=None):
      '''
      Return a list of the VMs that are on the provider. Only a list of VM names and
      their state is returned. This is the minimum amount of information needed to
      check for existing VMs.
  
      .. versionadded:: 2015.8.0
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-cloud -f list_nodes_min packet-provider
          salt-cloud --function list_nodes_min packet-provider
      '''
      if call == 'action':
          raise SaltCloudSystemExit(
              'The list_nodes_min function must be called with -f or --function.'
          )
  
      ret = {}
  
      for device in get_devices_by_token():
          ret[device.hostname] = {'id': device.id, 'state': device.state}
  
      return ret
docs: Return a list of the VMs that are on the provider. Only a list of VM names and
      their state is returned. This is the minimum amount of information needed to
      check for existing VMs.
  
      .. versionadded:: 2015.8.0
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-cloud -f list_nodes_min packet-provider
          salt-cloud --function list_nodes_min packet-provider