vendored/puppet/lib/puppet/provider/service/smf.rb in bolt-0.21.7 vs vendored/puppet/lib/puppet/provider/service/smf.rb in bolt-0.21.8

- old
+ new

@@ -106,12 +106,10 @@ super self.wait('online') end def stop - # Don't try to stop non-existing services (PUP-8167) - return if self.status == :absent # Wait for the service to actually stop before returning. super self.wait('offline', 'disabled', 'uninitialized') end @@ -136,11 +134,12 @@ # get the current state and the next state, and if the next # state is set (i.e. not "-") use it for state comparison states = service_states state = states[1] == "-" ? states[0] : states[1] rescue Puppet::ExecutionFailure + # TODO (PUP-8957): Should this be set back to INFO ? debug "Could not get status on service #{self.name} #{$!}" - return :absent + return :stopped end case state when "online" #self.warning "matched running #{line.inspect}"