Issue #1221 has been updated by jamtur01. Status changed from Ready for Checkin to Closed
Pushed in commit:"0f501e327dc767bb09d92429693f51629782065a" in branch 0.24.x ---------------------------------------- Bug #1221: adding an alias to a resource with the same name as that resource causes warning http://reductivelabs.com/redmine/issues/show/1221 Author: technogeeky Status: Closed Priority: Normal Assigned to: jamtur01 Category: Debian Target version: 0.24.5 Keywords: Complexity: Easy Patch: Insufficient Affected version: In the case where $fqdn and $hostname are identical, <pre> node base { host { "$fqdn": ip => "$ipaddress", alias => [ "$hostname" ], ensure => present, } } </pre> produces an error message similar to: <pre> warning: Configuration could not be instantiated: Duplicate definition: Host[foo] is already defined in file /etc/puppet/manifests/nodes/BASE.pp at line 18; cannot redefine </pre> It seems that, rather than producing a warning, the code should eventually evaluate to a noop. Attached is a patch that I believe does just that. An accompanying test will be forthcoming. ---------------------------------------- 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 -~----------~----~----~----~------~----~------~--~---
