On Aug 14, 2009, at 5:09 PM, James Turnbull wrote:

>
>
> Signed-off-by: James Turnbull <[email protected]>
> ---
> lib/puppet/provider/service/smf.rb |    3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/lib/puppet/provider/service/smf.rb b/lib/puppet/ 
> provider/service/smf.rb
> index 7036865..b7e229e 100755
> --- a/lib/puppet/provider/service/smf.rb
> +++ b/lib/puppet/provider/service/smf.rb
> @@ -70,7 +70,8 @@ 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]
> +            state.chomp

This is fine, but you can also use parents:

   state = svcs("-H", "-o", "state", @resource[:name]).chomp


>
>         rescue Puppet::ExecutionFailure
>             info "Could not get status on service %s" % self.name
>             return :stopped
> -- 
> 1.6.0.6
>
>
> >


-- 
Men will wrangle for religion; write for it; fight for it; die for it;
anything but live for it. --Charles Caleb Colton
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to