Brice,

I think that you're going to see a LOT of people welcoming this feature.

+1

Trevor

On Mon, Sep 15, 2008 at 4:41 PM, Brice Figureau
<[EMAIL PROTECTED]> wrote:
>
> Jeff wrote:
>> I've been through the documentation and for the life of me I can't
>> figure out how to implement if not defined. Puppet doesn't like the !
>> operator. I tried this:
>>
>> if ! $var {
>>   do_something
>> }
>
> I have a puppet patch that implements this feature.
> It semmes to work (I performed only minimal testing), and I think I'll
> submit it on the dev list soon for review, when the rspec tests will be
> finalized.
>
> If you want to use it, it is available in the wip/ifnot branch in my
> githib repository.
> http://github.com/masterzen/puppet/commits/wip/ifnot/
>
> It might even evoluate in a full-fledged if 'expression' (ie combination
> of ==,!=, and/or...) if I find the motivation and the spare time :-)
>
> Let me know if there is interest for this.
> --
> Brice Figureau
> Days of Wonder
> http://www.daysofwonder.com
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to