summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPete Higgins <pete@peterhiggins.org>2020-11-24 12:45:33 -0800
committerPete Higgins <pete@peterhiggins.org>2020-12-01 16:12:04 -0800
commit05ddf58da19573f7e1c3fca7f58ff09c8fd71c12 (patch)
tree78b4ffc948b1a2ac2d1eaaf8c2064b7cd7e49d50 /lib
parent647123ac6e1972551e33bb83be4fe059337d6a94 (diff)
downloadchef-05ddf58da19573f7e1c3fca7f58ff09c8fd71c12.tar.gz
Tweak attribute loading.
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/audit/runner.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/audit/runner.rb b/lib/chef/audit/runner.rb
index c048b18aba..02e4e64b04 100644
--- a/lib/chef/audit/runner.rb
+++ b/lib/chef/audit/runner.rb
@@ -26,7 +26,7 @@ class Chef
def node=(node)
@node = node
- node.default["audit"] = Chef::Audit::DEFAULT_ATTRIBUTES.merge(node["audit"] || {})
+ node.default["audit"] = Chef::Audit::DEFAULT_ATTRIBUTES.merge(node.default["audit"])
end
def node_load_completed(node, _expanded_run_list, _config)