[Puppet Users] Re: [Puppet-dev] Do you rely on 'param=undef' being equal to '(nothing)'?

2012-09-21 Thread Trevor Vaughan
After reading through the follow up messages, I think that the proposed change won't affect me at all. Thanks for the follow up. Trevor On Tue, Sep 18, 2012 at 8:30 PM, Eric Sorenson eric.soren...@puppetlabs.com wrote: On Saturday, September 15, 2012 5:06:52 PM UTC-7, Trevor Vaughan wrote: I

[Puppet Users] Re: [Puppet-dev] Do you rely on 'param=undef' being equal to '(nothing)'?

2012-09-18 Thread Eric Sorenson
On Friday, September 14, 2012 3:36:20 PM UTC-7, Stefan Schulte wrote: I use this a lot to be able to have an optional parameter in a parent class that is passed to an included class and the included class determines the default value. Like: class basic($puppet_cron = undef) {

[Puppet Users] Re: [Puppet-dev] Do you rely on 'param=undef' being equal to '(nothing)'?

2012-09-18 Thread Eric Sorenson
On Saturday, September 15, 2012 5:06:52 PM UTC-7, Trevor Vaughan wrote: I also use the undef to un-set parameters in various code segments. If this is made real, it will impact my code. Trevor, if I understand correctly I think using undef to un-set parameters won't change. If anything it

Re: [Puppet Users] Re: [Puppet-dev] Do you rely on 'param=undef' being equal to '(nothing)'?

2012-09-18 Thread Stefan Schulte
On Tue, Sep 18, 2012 at 05:27:07PM -0700, Eric Sorenson wrote: On Friday, September 14, 2012 3:36:20 PM UTC-7, Stefan Schulte wrote: I use this a lot to be able to have an optional parameter in a parent class that is passed to an included class and the included class determines the

[Puppet Users] Re: [Puppet-dev] Do you rely on 'param=undef' being equal to '(nothing)'?

2012-09-17 Thread Eric Sorenson
Aaron -- could you distill this down to a code sample? Unless I'm misunderstanding, it sounds like your case is slightly different to the ones I posted. Thanks. On Friday, September 14, 2012 3:29:05 PM UTC-7, Aaron Grewell wrote: I'm using the current behavior in inherited classes to unset

Re: [Puppet Users] Re: [Puppet-dev] Do you rely on 'param=undef' being equal to '(nothing)'?

2012-09-17 Thread Daniel Pittman
On Mon, Sep 17, 2012 at 11:58 AM, Eric Sorenson eric.soren...@puppetlabs.com wrote: Aaron -- could you distill this down to a code sample? Unless I'm misunderstanding, it sounds like your case is slightly different to the ones I posted. Thanks. I recognise the case; this is a different use

[Puppet Users] Re: [Puppet-dev] Do you rely on 'param=undef' being equal to '(nothing)'?

2012-09-15 Thread Trevor Vaughan
I also use the undef to un-set parameters in various code segments. If this is made real, it will impact my code. Thanks, Trevor On Fri, Sep 14, 2012 at 6:39 PM, Stefan Schulte stefan.schu...@taunusstein.net wrote: On Fri, Sep 14, 2012 at 11:31:08AM -0700, Eric Sorenson wrote: Hi, there's an

[Puppet Users] Re: [Puppet-dev] Do you rely on 'param=undef' being equal to '(nothing)'?

2012-09-14 Thread Aaron Grewell
I'm using the current behavior in inherited classes to unset parameters set by the parent class. If that no longer works it will definitely impact my code. On Sep 14, 2012 11:31 AM, Eric Sorenson eric.soren...@puppetlabs.com wrote: Hi, there's an issue that came up recently in the 3.0RCs -- Big

[Puppet Users] Re: [Puppet-dev] Do you rely on 'param=undef' being equal to '(nothing)'?

2012-09-14 Thread Stefan Schulte
On Fri, Sep 14, 2012 at 11:31:08AM -0700, Eric Sorenson wrote: Hi, there's an issue that came up recently in the 3.0RCs -- Big thanks to Erik Dalén for reporting it in #16221 -- that involves a behaviour change to part of the DSL. In a nutshell, this code: [..] class toplevel (