On Saturday, May 5, 2012 6:42:31 AM UTC-7, Philip Brown wrote:
>
>
>
> *Almost* done with this beastie!  Now I just have to force it to return 
> "true" when things already look good!
> ruby is wierd. sigh.   I have
> @resource[:value]    claiming its value is "true"
> and the output of a command, in variable 'output', claming its value is 
> "true".
> BUT...
>
>     if output == @resource[:value]
>       Puppet.debug "svcprop value is desired value. sysprop return true"
>       return true
>     end
>
> is NOT returning true. "exists?" falling through and returning false. 
> sighh...
>

bah. had to call .strip  on the output. Works!

Now the only major ugliness left, is that on successful trigger, the 
--verbose output is:
notice: /Stage[main]//Sysprop[network/smtp:sendmail]/ensure: created

I'd rather it said something different from "ensure: created" . A custom 
message would be nice.
But I suppose I dont have any control over that.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-dev/-/X5q9AbuRiuQJ.
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