Issue #21693 has been reported by Zach Leslie.
----------------------------------------
Bug #21693: Arrays as paramater values are not preserved if the array contains
only one element
https://projects.puppetlabs.com/issues/21693
* Author: Zach Leslie
* Status: Unreviewed
* Priority: Normal
* Assignee:
* Category: parser
* Target version:
* Affected Puppet version: 3.2.1
* Keywords:
* Branch:
----------------------------------------
Note the following puppet manifest:
mytype {'namegoeshere'
param => [
{
'ten' => 10,
}
]
}
The data type of 'param' here should be an Array. Though when the code is
processed, if the array contains only one element, the data type becomes Hash
instead. This is a problem for anyone writing types that need to parse out the
data inside of a given paramater.
--
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.