# File lib/knife-solo/resources/patch_cookbooks/chef-solo-search/libraries/search/overrides.rb, line 64 def search_nodes(_query, start, rows, &block) _result = [] Dir.glob(File.join(Chef::Config[:data_bag_path], "node", "*.json")).map do |f| # parse and hashify the node node = Chef::JSONCompat.from_json(IO.read(f)) if _query.match(node.to_hash) _result << node end end return _result end