Issue #2310 has been updated by Cedric Jeanneret.
Oh, ok. sorry for this wrong bug. ---------------------------------------- Bug #2310: toto::titi and wrapper::toto::titi : duplicate definition http://projects.reductivelabs.com/issues/2310 Author: Cedric Jeanneret Status: Rejected Priority: Normal Assigned to: Category: Target version: Complexity: Medium Affected version: 0.24.8 Keywords: Hello, I have something funny : <pre> define toto::titi($ensure=present,$content) { file {"$name": ensure => $ensure, content => $content, mode => 0666, } } define wrapper::toto::titi($ensure=present) { toto::titi{"$name": ensure => $ensure, content => "my default content\n", } } wrapper::toto::titi{"/tmp/toto": ensure => present, } </pre> returns : <pre> Puppet::Parser::AST::Resource failed with error ArgumentError: Duplicate definition: Wrapper::Toto::Titi[/tmp/toto] is already defined in file /root/toto.pp at line 17; cannot redefine at /root/toto.pp:13 on node bidule.truc </pre> If I rename my wrapper to "wrapper::tototiti" it works... seems puppet isn't using full definition name, but only matches a part of it. Some system informations : puppet --version 0.24.8 Regards, C. -- 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 -~----------~----~----~----~------~----~------~--~---
