When using include_policy with no run_list, 'run_list cannot be empty' emitted #39
Labels
Triage: Confirmed
Indicates and issue has been confirmed as described.
Triage: Needs Information
Indicates an issue needs more information in order to work on it.
Type: Bug
Does not work as expected.
Description
When using
include_policy
in a Policyfile, if you follow a pattern of using a single Policyfile to define multiple actions via include_policies without specifying run_list, the Policyfile generation will fail withHowever, it would stand to reason that if you are including policies into your Policyfile, that the parser should take the run_lists from those included policies into account before claiming there's no run_list.
ChefDK Version
Platform Version
CentOS 7
Replication Case
chef install Policyfile.rb
on Policy BReason: (ChefDK::PolicyfileError) Invalid run_list. run_list cannot be empty
Stacktrace
The text was updated successfully, but these errors were encountered: