From 69d5bb494a14f58b3590027da509eca9ac610c3b Mon Sep 17 00:00:00 2001 From: Jay Mundrawala Date: Tue, 16 Dec 2014 22:19:41 -0800 Subject: Rename Chef::Exceptions::LCMParserException to Chef::Exceptions::LCMParser --- lib/chef/util/dsc/lcm_output_parser.rb | 2 +- lib/chef/util/dsc/local_configuration_manager.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/chef/util') diff --git a/lib/chef/util/dsc/lcm_output_parser.rb b/lib/chef/util/dsc/lcm_output_parser.rb index 37908d064b..754fde3e8b 100644 --- a/lib/chef/util/dsc/lcm_output_parser.rb +++ b/lib/chef/util/dsc/lcm_output_parser.rb @@ -99,7 +99,7 @@ class Chef if resources.length > 0 build_resource_info(resources) else - raise Chef::Exceptions::LCMParserException, "Could not parse:\n#{lcm_output}" + raise Chef::Exceptions::LCMParser, "Could not parse:\n#{lcm_output}" end end diff --git a/lib/chef/util/dsc/local_configuration_manager.rb b/lib/chef/util/dsc/local_configuration_manager.rb index 55ffc7943c..c3149429f9 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::Exceptions::LCMParserException => e + rescue Chef::Exceptions::LCMParser => 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