summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2009-08-13 21:10:26 +1000
committerJames Turnbull <james@lovedthanlost.net>2009-08-15 10:19:22 +1000
commit299eadb7d903d250c8340049bd78611f0c705920 (patch)
treefc3932c8430f17aead62374156a57ed38dcd8177 /lib
parente6a7e82dd549ee2aa1dc864937a2d0e5577d50e2 (diff)
downloadpuppet-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-xlib/puppet/provider/service/smf.rb2
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