code: def list_nodes_select(nodes, selection, call=None):
      '''
      Return a list of the VMs that are on the provider, with select fields
      '''
      if call == 'action':
          raise SaltCloudSystemExit(
              'The list_nodes_select function must be called '
              'with -f or --function.'
          )
  
      if 'error' in nodes:
          raise SaltCloudSystemExit(
              'An error occurred while listing nodes: {0}'.format(
                  nodes['error']['Errors']['Error']['Message']
              )
          )
  
      ret = {}
      for node in nodes:
          pairs = {}
          data = nodes[node]
          for key in data:
              if six.text_type(key) in selection:
                  value = data[key]
                  pairs[key] = value
          ret[node] = pairs
  
      return ref list_nodes_select(nodes, selection, call=None):
      '''
      Return a list of the VMs that are on the provider, with select fields
      '''
      if call == 'action':
          raise SaltCloudSystemExit(
              'The list_nodes_select function must be called '
              'with -f or --function.'
          )
  
      if 'error' in nodes:
          raise SaltCloudSystemExit(
              'An error occurred while listing nodes: {0}'.format(
                  nodes['error']['Errors']['Error']['Message']
              )
          )
  
      ret = {}
      for node in nodes:
          pairs = {}
          data = nodes[node]
          for key in data:
              if six.text_type(key) in selection:
                  value = data[key]
                  pairs[key] = value
          ret[node] = pairs
  
      return ret
docs: Return a list of the VMs that are on the provider, with select fields