def perform_search(type, query)
      Chef::Search::Query.new.search(type, query).first.map(&:name)
    end
def perform_search(type, query)
      Chef::Search::Query.new.search(type, query).first.map(&:name)
    end
Perform a search and return the names of the nodes that match the search.