summaryrefslogtreecommitdiff
path: root/lib/chef/policy_builder
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-11-09 16:28:05 -0800
committerTim Smith <tsmith@chef.io>2018-11-09 16:28:05 -0800
commitc63e4054403bca1ebb162313558ae5d70e6168f6 (patch)
tree2b08b996edd86b17f11f70f43e3d6251471dbc42 /lib/chef/policy_builder
parentb161757e090d7b4e09bf240b8c89efd51a083d00 (diff)
downloadchef-c63e4054403bca1ebb162313558ae5d70e6168f6.tar.gz
Always run policy_file if a policy_file or policy_group existspolicy_files_always
Remove the config to turn it off Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/policy_builder')
-rw-r--r--lib/chef/policy_builder/dynamic.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/policy_builder/dynamic.rb b/lib/chef/policy_builder/dynamic.rb
index 84021ea611..8ce4f25bfa 100644
--- a/lib/chef/policy_builder/dynamic.rb
+++ b/lib/chef/policy_builder/dynamic.rb
@@ -173,7 +173,7 @@ class Chef
end
def policyfile_set_in_config?
- config[:use_policyfile] || config[:policy_name] || config[:policy_group]
+ config[:policy_name] || config[:policy_group]
end
def policyfile_compat_mode_config?