Should the C-style selector and if/then statements have equivalent
true/false handling? Maybe I'm setting this up wrong, but I expected these
two to be the same:
if $name[symlink] { $symlink = $name[symlink] } else { $symlink
= undef }
$symlink = $name[symlink] ? { true => $name[symlink], false =>
undef }
Yet they don't return the same result. The if/then statement sets the value
to false as expected, whereas the selector never matches at all and throws
an error.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" 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-users?hl=en.