diff options
author | James Turnbull <james@lovedthanlost.net> | 2009-08-13 21:10:26 +1000 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2009-08-15 10:19:22 +1000 |
commit | 299eadb7d903d250c8340049bd78611f0c705920 (patch) | |
tree | fc3932c8430f17aead62374156a57ed38dcd8177 /lib | |
parent | e6a7e82dd549ee2aa1dc864937a2d0e5577d50e2 (diff) | |
download | puppet-299eadb7d903d250c8340049bd78611f0c705920.tar.gz puppet-299eadb7d903d250c8340049bd78611f0c705920.tar.xz puppet-299eadb7d903d250c8340049bd78611f0c705920.zip |
Fixed #2530 - Fixed status setting in the SMF provider
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/puppet/provider/service/smf.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/provider/service/smf.rb b/lib/puppet/provider/service/smf.rb index 7036865ae..0071a8c93 100755 --- a/lib/puppet/provider/service/smf.rb +++ b/lib/puppet/provider/service/smf.rb @@ -70,7 +70,7 @@ Puppet::Type.type(:service).provide :smf, :parent => :base do end begin - state = svcs "-H -o state", @resource[:name] + state = svcs("-H", "-o", "state", @resource[:name]).chomp rescue Puppet::ExecutionFailure info "Could not get status on service %s" % self.name return :stopped |