Hi Peter,

I just tried that out on my machine using the latest code. It doesn't look
like it has been fixed. I did a quick look around for an already filed
issue, but didn't find anything. I opened up a new bug (
https://projects.puppetlabs.com/issues/18672), thanks for letting us know!

Would you be interested in taking a stab at fixing it?


On Wed, Jan 16, 2013 at 2:42 AM, Peter Bauer <[email protected]>wrote:

> hi,
>
> i don't know if this has been fixed for 3.x, but
>
> $boole = true
> $testvar = $boole ? {
>   true => {},
>   default => { hans => franz },
> }
>
> leads to:
>
> Could not parse for environment production: Syntax error at '{'; expected
> '}' at /tmp/test.pp:3
>
> whereas
>
> $boole = true
> $emptyhash = {}
> $testvar = $boole ? {
>   true => $emptyhash,
>   default => { hans => franz},
> }
>
> works fine.
>
> br,
> Peter
>
> --
> 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/-/nGNl_-5K1nEJ.
> 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.
>

-- 
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