Issue #14425 has been reported by Florian Zavatzki.
----------------------------------------
Bug #14425: Access to multidimensional hash in manifest results in syntax error
https://projects.puppetlabs.com/issues/14425
Author: Florian Zavatzki
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version: 2.6.2
Keywords:
Branch:
Accessing a multidimensional hash with more then two levels results in a syntax
error.
class value {
$hash = {'l1' => {'l2' => {'l3' => 'foo'}}}
}
class access {
include value
$bar = $value::hash['l1']['l2']['l3']
}
This result in a syntax error:
Syntax error at '['; expected ']'
Using the example above with a step between, everything works:
class access {
include value
$bar1 = $value::hash['l1']
$bar2 = $bar1['l2']['l3']
}
Tested in version 2.6.2-5+squeeze5 on Debian squeeze.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" 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-bugs?hl=en.