diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-03-14 13:34:13 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-03-14 13:34:13 -0700 |
commit | 4f2a756684ff6c828f5bc3ef6c1885871eefa33c (patch) | |
tree | b6580d1bef2dcd477c4424f2bb56c0022bbf9bea /lib/chef/policy_builder | |
parent | 1904bf447cc1c08af8bc90fe8e11ab4c777e92d0 (diff) | |
download | chef-4f2a756684ff6c828f5bc3ef6c1885871eefa33c.tar.gz |
fix specs
Diffstat (limited to 'lib/chef/policy_builder')
-rw-r--r-- | lib/chef/policy_builder/policyfile.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/policy_builder/policyfile.rb b/lib/chef/policy_builder/policyfile.rb index 875ca735c7..05e5c2f3ef 100644 --- a/lib/chef/policy_builder/policyfile.rb +++ b/lib/chef/policy_builder/policyfile.rb @@ -256,9 +256,9 @@ class Chef # @api private def run_list if named_run_list_requested? - raise ConfigurationError, + named_run_list || raise(ConfigurationError, "Policy '#{retrieved_policy_name}' revision '#{revision_id}' does not have named_run_list '#{named_run_list_name}'" + - "(available named_run_lists: [#{available_named_run_lists.join(', ')}])" unless named_run_list + "(available named_run_lists: [#{available_named_run_lists.join(', ')}])") else policy["run_list"] end @@ -320,7 +320,7 @@ class Chef # @api private def deployment_group - raise ConfigurationError, "Setting `deployment_group` is not configured." unless Chef::Config[:deployment_group] + Chef::Config[:deployment_group] || raise(ConfigurationError, "Setting `deployment_group` is not configured.") end # @api private |