code: def list_nodes(full=False, call=None):
      '''
      List of nodes, keeping only a brief listing
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-cloud -Q
      '''
      if call == 'action':
          raise SaltCloudSystemExit(
              'The list_nodes function must be called with -f or --function.'
          )
  
      ret = {}
      nodes = list_nodes_full('function')
      if full:
          return nodes
  
      for node in nodes:
          ret[node] = {}
          for item in ('id', 'image', 'size', 'public_ips', 'private_ips', 'state'):
              ret[node][item] = nodes[node][item]
  
      return ref list_nodes(full=False, call=None):
      '''
      List of nodes, keeping only a brief listing
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-cloud -Q
      '''
      if call == 'action':
          raise SaltCloudSystemExit(
              'The list_nodes function must be called with -f or --function.'
          )
  
      ret = {}
      nodes = list_nodes_full('function')
      if full:
          return nodes
  
      for node in nodes:
          ret[node] = {}
          for item in ('id', 'image', 'size', 'public_ips', 'private_ips', 'state'):
              ret[node][item] = nodes[node][item]
  
      return ret
docs: List of nodes, keeping only a brief listing
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-cloud -Q