From 60cf0de3e368168ba0a5ed8d9d4d9f261aed6431 Mon Sep 17 00:00:00 2001 From: Jay Mundrawala Date: Mon, 15 Dec 2014 21:34:41 -0800 Subject: Fix bug where error parser what-if output causes resource to be considered converged. We now fall back to assuming the resource is not converged if we cannot parse information about a dsc resource. --- lib/chef/util/dsc/local_configuration_manager.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/chef/util/dsc/local_configuration_manager.rb') diff --git a/lib/chef/util/dsc/local_configuration_manager.rb b/lib/chef/util/dsc/local_configuration_manager.rb index f498a2bfea..55ffc7943c 100644 --- a/lib/chef/util/dsc/local_configuration_manager.rb +++ b/lib/chef/util/dsc/local_configuration_manager.rb @@ -103,7 +103,7 @@ EOH Chef::Log.debug("DSC: DSC returned the following '-whatif' output from test operation:\n#{what_if_output}") begin Parser::parse(what_if_output) - rescue Chef::Util::DSC::LocalConfigurationManager::Parser => e + rescue Chef::Exceptions::LCMParserException => e Chef::Log::warn("Could not parse LCM output: #{e}") [Chef::Util::DSC::ResourceInfo.new('Unknown DSC Resources', true, ['Unknown changes because LCM output was not parsable.'])] end -- cgit v1.2.1