diff options
author | Thom May <thom@may.lt> | 2017-01-17 18:03:19 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-17 18:03:19 +0000 |
commit | 3b7ed2bd92e1d2e0db01f5a85a379582a8270a3f (patch) | |
tree | 329047549b14aa631f9e92974ca60ee8f5594b2e /lib/chef/policy_builder | |
parent | 4cdf66b25bb0b6670607bb0570f0ff82f5322b26 (diff) | |
parent | a93d144763c7eaf68412144780fa674870f5ee0f (diff) | |
download | chef-3b7ed2bd92e1d2e0db01f5a85a379582a8270a3f.tar.gz |
Merge pull request #5410 from johnbellone/master
Add the policyfile revision_id as an automatic attribute.
Diffstat (limited to 'lib/chef/policy_builder')
-rw-r--r-- | lib/chef/policy_builder/policyfile.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/policy_builder/policyfile.rb b/lib/chef/policy_builder/policyfile.rb index 8d2437fef5..f0009eac6c 100644 --- a/lib/chef/policy_builder/policyfile.rb +++ b/lib/chef/policy_builder/policyfile.rb @@ -173,6 +173,7 @@ class Chef CookbookCacheCleaner.instance.skip_removal = true if named_run_list_requested? node.run_list(run_list) + node.automatic_attrs[:policy_revision] = revision_id node.automatic_attrs[:roles] = [] node.automatic_attrs[:recipes] = run_list_expansion_ish.recipes run_list_expansion_ish |