Issue #2790 has been updated by Dan Bode.

Do we want people that write classes that LOOK like multiple inheritance even 
though they are equivalent to single inheritance in our declarative language? 
Is this a valid use case? If this is valid, then I think its reasonable that 
plussignment should map to the second case you mentioned:

alias +> [subclass1, subclass2]
----------------------------------------
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to