From 4f2a756684ff6c828f5bc3ef6c1885871eefa33c Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Mon, 14 Mar 2016 13:34:13 -0700 Subject: fix specs --- lib/chef/policy_builder/policyfile.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/chef/policy_builder') 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 -- cgit v1.2.1