diff options
author | danielsdeleo <dan@chef.io> | 2015-09-14 19:15:41 -0700 |
---|---|---|
committer | danielsdeleo <dan@chef.io> | 2015-09-17 14:29:50 -0700 |
commit | f21715037c1fc9956738ba069760f3c7615987ce (patch) | |
tree | eb3d0f4a2d91d4a244efd14611d616d2b42d8dac /lib/chef/node.rb | |
parent | e441d37d36eedbd73b37166f982536b8702ff4fb (diff) | |
download | chef-f21715037c1fc9956738ba069760f3c7615987ce.tar.gz |
Populate node policyfile attrs from JSON
Diffstat (limited to 'lib/chef/node.rb')
-rw-r--r-- | lib/chef/node.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/chef/node.rb b/lib/chef/node.rb index 3c3286c548..668ddbdc35 100644 --- a/lib/chef/node.rb +++ b/lib/chef/node.rb @@ -549,6 +549,10 @@ class Chef else o["recipes"].each { |r| node.recipes << r } end + + node.policy_name = o["policy_name"] if o.has_key?("policy_name") + node.policy_group = o["policy_group"] if o.has_key?("policy_group") + node end |