diff options
author | Mia Henderson <mimato@users.noreply.github.com> | 2020-01-29 12:35:03 -0500 |
---|---|---|
committer | Mia Henderson <mimato@users.noreply.github.com> | 2020-01-29 12:35:03 -0500 |
commit | 166d2fafe541930babcc545c608a8e208188d910 (patch) | |
tree | d6d12c28a1e0d9b7be53cac36343fa99884e1e87 | |
parent | 80eb6112c4baa36ecccbb780791f2ef34d2f8992 (diff) | |
download | chef-166d2fafe541930babcc545c608a8e208188d910.tar.gz |
use to_sym rather than using array
Signed-off-by: Mia Henderson <mia@pagerduty.com>
-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 e1c039b7c5..fa758fc274 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 [:node, "node"].include?(type) + if type.to_sym == :node query = fuzzify_node_query(query) end # FIXME: can i haz proper ruby-2.x named parameters someday plz? |