diff options
author | Noah Kantrowitz <noah@coderanger.net> | 2015-06-19 21:51:24 -0700 |
---|---|---|
committer | Noah Kantrowitz <noah@coderanger.net> | 2015-06-19 21:51:24 -0700 |
commit | 29dc98c61d1dc206ce40643ccbe9c8963db428d7 (patch) | |
tree | d3f2996f024a2c35f62a93d680610bbf664711cf | |
parent | 37e9c14ec87abfae7277c948a84cd10963806280 (diff) | |
download | chef-29dc98c61d1dc206ce40643ccbe9c8963db428d7.tar.gz |
Re-add #priority.
Possible fix for https://github.com/chef/chef/issues/3561.
-rw-r--r-- | lib/chef/platform/priority_map.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/chef/platform/priority_map.rb b/lib/chef/platform/priority_map.rb index 3608975b51..1bfb97af4a 100644 --- a/lib/chef/platform/priority_map.rb +++ b/lib/chef/platform/priority_map.rb @@ -3,6 +3,10 @@ require 'chef/node_map' class Chef class Platform class PriorityMap < Chef::NodeMap + def priority(resource_name, priority_array, *filter) + set(resource_name.to_sym, Array(priority_array), *filter) + end + # @api private def get_priority_array(node, key) get(node, key) |