Hello, I like to use selectors like this in a few locations:
$shell = $operatingsystem ? { 'freebsd' => '/usr/local/bin/bash', default => '/bin/bash', } However it appears broken if I use an array value as my selection criteria: $info = [ "acrews", "Adam", "/bin/bash" ] $shell = $info[2] ? { /bin/ => $info[2], default => "/sbin/nologin", } I get: Syntax error at '?'; expected '} If I do this it works: $info = [ "acrews", "Adam", "/bin/bash" ] $AA = $info[2] $shell => $AA ? { /bin/ => $info[2], default => "/sbin/nologin", } This is just an example, I actually populate $info from an extlookup in a define that returns basically the same array. Am I doing something wrong, or is this a bug? Thanks -Adam -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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.