summaryrefslogtreecommitdiff
path: root/lib/chef/node_map.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/node_map.rb')
-rw-r--r--lib/chef/node_map.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/node_map.rb b/lib/chef/node_map.rb
index 751f9576f6..55b5942a21 100644
--- a/lib/chef/node_map.rb
+++ b/lib/chef/node_map.rb
@@ -128,7 +128,7 @@ class Chef
value = node[attribute]
# Split the blacklist and whitelist
- blacklist, whitelist = filter_values.partition { |v| v.is_a?(String) && v.start_with?('!') }
+ blacklist, whitelist = filter_values.partition { |v| v.is_a?(String) && v.start_with?("!") }
# If any blacklist value matches, we don't match
return false if blacklist.any? { |v| v[1..-1] == value }
@@ -195,8 +195,8 @@ class Chef
# Check for blcacklists ('!windows'). Those always come *after* positive
# whitelists.
- a_negated = Array(a).any? { |f| f.is_a?(String) && f.start_with?('!') }
- b_negated = Array(b).any? { |f| f.is_a?(String) && f.start_with?('!') }
+ a_negated = Array(a).any? { |f| f.is_a?(String) && f.start_with?("!") }
+ b_negated = Array(b).any? { |f| f.is_a?(String) && f.start_with?("!") }
if a_negated != b_negated
return 1 if a_negated
return -1 if b_negated