Issue #2790 has been updated by Luke Kanies. Status changed from Accepted to Needs design decision
This is actually behaving as designed - only one subclass can override, and then if you want to append again you have to be a subclass of the appending class. Otherwise, for order-dependent values, you'd get essentially undefined ordering, based on the order you evaluated the classes. I'm open to redefining this behaviour so that appending doesn't change the source of the parameter, but note that it would be a behaviour change. And yes, the param source is used to check all of the override/inheritance rules. ---------------------------------------- Bug #2790: "Parameter 'x' is already set" error when adding value to resource (plusignment) http://projects.reductivelabs.com/issues/2790 Author: Lluis Gili Status: Needs design decision Priority: Normal Assigned to: Dan Bode Category: language Target version: 0.25.2 Affected version: 0.25.1 Keywords: Branch: See this manifest as example: <pre> class test { sshkey { "$fqdn": target=>"/tmp/sshkey", ensure=>present, key=>$sshrsakey, type=>rsa; } } class subclass1 inherits test { Sshkey["$fqdn"] { alias +> "subclass1" } } class subclass2 inherits test { Sshkey["$fqdn"] { alias +> "subclass2" } } node default { include subclass1 include subclass2 } </pre> <pre> puppet ~/test.pp Parameter 'alias' is already set on Sshkey[debian.ingent.local] by subclass1 at /home/lluis/test.pp:12; cannot redefine at /home/lluis/test.pp:16 on node debian.ingent.local </pre> tryed with puppet 0.24.8 and 0.25.1 -- 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://reductivelabs.com/redmine/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 -~----------~----~----~----~------~----~------~--~---
