summaryrefslogtreecommitdiff
path: root/lib/chef/node_map.rb
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2015-06-25 14:46:55 -0700
committerJay Mundrawala <jdmundrawala@gmail.com>2015-06-25 14:46:55 -0700
commit790bb5f3305e1f0ef4bc8252d620cba9d749d01b (patch)
tree7357819336469052aca92ef94c16c8fcc0b5e599 /lib/chef/node_map.rb
parent461f8fd714977f3d8353df0cc187bf601bc55a9a (diff)
downloadchef-790bb5f3305e1f0ef4bc8252d620cba9d749d01b.tar.gz
Fix issue where blocks were not considered in priority mappingjdm/3593
This should solve #3593
Diffstat (limited to 'lib/chef/node_map.rb')
-rw-r--r--lib/chef/node_map.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/node_map.rb b/lib/chef/node_map.rb
index d5eed7c215..edf0fd689a 100644
--- a/lib/chef/node_map.rb
+++ b/lib/chef/node_map.rb
@@ -181,7 +181,7 @@ class Chef
end
def compare_matchers(key, new_matcher, matcher)
- cmp = compare_matcher_properties(new_matcher, matcher) { |m| m[:filters][:block] }
+ cmp = compare_matcher_properties(new_matcher, matcher) { |m| m[:block] }
return cmp if cmp != 0
cmp = compare_matcher_properties(new_matcher, matcher) { |m| m[:filters][:platform_version] }
return cmp if cmp != 0