Re: [Puppet Users] Editing a variable defined in the same scope

2011-11-15 Thread Christopher Wood
On Tue, Nov 15, 2011 at 01:42:24PM -0800, Justin Lloyd wrote: >I tried the following (names changed to protect the innocent and guilty): > >class myclass ( $param ) { > >��� $myvar = [ "foo", "bar" ] > >��� if $param == "special" { >��� $myvar += [ "blah" ] >��� } >

[Puppet Users] Editing a variable defined in the same scope

2011-11-15 Thread Justin Lloyd
I tried the following (names changed to protect the innocent and guilty): class myclass ( $param ) { $myvar = [ "foo", "bar" ] if $param == "special" { $myvar += [ "blah" ] } } and got the message "...Cannot append, variable myvar is defined in this scope...". According to