Issue #3731 has been updated by Doug Warner.
I have a define where I try to merge two arrays inside an Augeas type for the
"changes" parameter. It's something like this:
<pre>
class memcache {
define inst($config = []) {
augeas { "conf.d-memcache":
context => "/files/etc/conf.d/memcached",
changes => [
"set MAXCONN 1000",
"set LISTENON 127.0.0.1",
$config,
],
}
}
}
</pre>
This was working in 0.24.8 but fails in 0.25.4.
I've tried appending to "changes" with +>, but that appears to be not supported
(puppet complains that the variable is already set). Likewise, I can't append
to a variable in the define to put the default values there and then add to it
when I create instances.
----------------------------------------
Bug #3731: Cannot merge two arrays - Failed to retrieve current state of
resource: undefined method `strip!' for #<Array:0x7f96f20436a8>"
http://projects.puppetlabs.com/issues/3731
Author: Doug Warner
Status: Unreviewed
Priority: Normal
Assigned to:
Category:
Target version:
Affected version: 0.25.4
Keywords:
Branch:
--
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.