diff options
author | Mia Henderson <mimato@users.noreply.github.com> | 2020-01-27 15:24:38 -0500 |
---|---|---|
committer | Mia Henderson <mimato@users.noreply.github.com> | 2020-01-27 15:24:38 -0500 |
commit | c22e314ce8e9ad1b6b91125272e4e33c5ce2e35c (patch) | |
tree | 29d1721c860b1fbc1d2c71f7c5f8f6d6ac072b7a /lib/chef/search | |
parent | 8b78fe904689dd6539e308fb87bffe103fb852f1 (diff) | |
download | chef-c22e314ce8e9ad1b6b91125272e4e33c5ce2e35c.tar.gz |
Fix fuzzy node search to work when the search type is a string rather than a symbol
Signed-off-by: Mia Henderson <mia@pagerduty.com>
Diffstat (limited to 'lib/chef/search')
-rw-r--r-- | lib/chef/search/query.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/search/query.rb b/lib/chef/search/query.rb index 46dedd33f8..4eaff0471c 100644 --- a/lib/chef/search/query.rb +++ b/lib/chef/search/query.rb @@ -63,7 +63,7 @@ class Chef args_h = hashify_args(*args) if args_h[:fuzz] - if type == :node + if [:node, 'node'].include?(type) query = fuzzify_node_query(query) end # FIXME: can i haz proper ruby-2.x named parameters someday plz? |