code: def avail_locations(call=None):
      '''
      Return a list of the hypervisors (nodes) which this Proxmox PVE machine manages
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-cloud --list-locations my-proxmox-config
      '''
      if call == 'action':
          raise SaltCloudSystemExit(
              'The avail_locations function must be called with '
              '-f or --function, or with the --list-locations option'
          )
  
      # could also use the get_resources_nodes but speed is ~the same
      nodes = query('get', 'nodes')
  
      ret = {}
      for node in nodes:
          name = node['node']
          ret[name] = node
  
      return ref avail_locations(call=None):
      '''
      Return a list of the hypervisors (nodes) which this Proxmox PVE machine manages
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-cloud --list-locations my-proxmox-config
      '''
      if call == 'action':
          raise SaltCloudSystemExit(
              'The avail_locations function must be called with '
              '-f or --function, or with the --list-locations option'
          )
  
      # could also use the get_resources_nodes but speed is ~the same
      nodes = query('get', 'nodes')
  
      ret = {}
      for node in nodes:
          name = node['node']
          ret[name] = node
  
      return ret
docs: Return a list of the hypervisors (nodes) which this Proxmox PVE machine manages
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-cloud --list-locations my-proxmox-config