From 4ca965945aefab41bee1c3f3b33a93cb68d424c0 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Wed, 3 Sep 2014 13:08:54 -0700 Subject: spec and code fixes for upstart provider --- lib/chef/provider/service/upstart.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/chef/provider/service/upstart.rb b/lib/chef/provider/service/upstart.rb index 5c021e8cb7..670bf9e5f8 100644 --- a/lib/chef/provider/service/upstart.rb +++ b/lib/chef/provider/service/upstart.rb @@ -100,7 +100,7 @@ class Chef if shell_out!(@new_resource.status_command) == 0 @current_resource.running true end - rescue Chef::Exceptions::Exec + rescue @command_success = false @current_resource.running false nil -- cgit v1.2.1