diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-02-11 16:12:49 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-02-11 16:12:49 -0800 |
commit | 002ef48ab082fc8f0767fb37c5b94471a8fd0185 (patch) | |
tree | 865e2a2758c93967f926110f3e0eebe93d303f81 /lib/chef/node.rb | |
parent | 6ca21c9ce206f1ada1c12a02afb46e3f1625a321 (diff) | |
parent | 37e02399a6e1dd281808a556f1420f8cf6e846fd (diff) | |
download | chef-002ef48ab082fc8f0767fb37c5b94471a8fd0185.tar.gz |
Merge pull request #4541 from chef/lcg/chefstyle-batch
fix a batch of cops
Diffstat (limited to 'lib/chef/node.rb')
-rw-r--r-- | lib/chef/node.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/node.rb b/lib/chef/node.rb index 1f72c86a8b..0471fe1171 100644 --- a/lib/chef/node.rb +++ b/lib/chef/node.rb @@ -685,7 +685,7 @@ class Chef def data_for_save data = for_json - ["automatic", "default", "normal", "override"].each do |level| + %w{automatic default normal override}.each do |level| whitelist_config_option = "#{level}_attribute_whitelist".to_sym whitelist = Chef::Config[whitelist_config_option] unless whitelist.nil? # nil => save everything |