summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMia Henderson <mimato@users.noreply.github.com>2020-01-29 12:35:03 -0500
committerMia Henderson <mimato@users.noreply.github.com>2020-01-29 12:35:03 -0500
commit166d2fafe541930babcc545c608a8e208188d910 (patch)
treed6d12c28a1e0d9b7be53cac36343fa99884e1e87
parent80eb6112c4baa36ecccbb780791f2ef34d2f8992 (diff)
downloadchef-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.rb2
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?