On 01/11/2011 10:48 PM, Adam Crews wrote:
> $info = [ "acrews", "Adam", "/bin/bash" ]
> $shell = $info[2] ? {
>    /bin/ => $info[2],
>    default => "/sbin/nologin",
> }
> 
> I get: Syntax error at '?'; expected '}

> Am I doing something wrong, or is this a bug?

To me, this looks like a bug. You should just report it, if it turns out
to be a feature instead ;-) the devs will probably tell you so.

Cheers,
Felix

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to