Issue #2790 has been updated by Markus Roberts.

Status changed from Needs design decision to Rejected

As Dan and I hashed out off-line, it isn't a matter of merely "looking like 
multiple inheritance;" any class hierarchy in any inheritance scheme is, at 
some level, equivalent to a simpler class structure where redundancy and 
hard-coding have replaced some (or all) of the inheritance.

Given that, the observed behavior is correct; puppet does not support

    prop +> "value1";
    prop +> "value2" 

as a means of writing

    prop +> [value1, value2]

and separating the pair of plusignments does not alter that.

If you (Dan & Llius) want you can push for this to change, but that would be 
(as the saying goes) a feature, not a bug.

----------------------------------------
Bug #2790: "Parameter 'x' is already set" error when adding value to resource 
(plusignment)
http://projects.reductivelabs.com/issues/2790

Author: Lluis Gili
Status: Rejected
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