Issue #2112 has been updated by luke.
Status changed from Accepted to Ready for Checkin
Assigned to changed from luke to jamtur01
Fixed in my tickets/master/2112 branch.
----------------------------------------
Bug #2112: Puppet fails with "Duplicate Definition" on any ParsedFile type when
using "resources { purge => true }"
http://projects.reductivelabs.com/issues/2112
Author: egerlach
Status: Accepted
Priority: Normal
Assigned to: jamtur01
Category: plumbing
Target version: 0.25.0
Complexity: Unknown
Affected version: 0.25.0
Keywords:
If you use @resources { type: purge => true }@ on a type which uses a
ParsedFile provider, and the entry is already in the default target file,
puppet fails with (e.g.):
<pre>
err: Could not apply complete catalog: Duplicate definition:
Firehol[eth0-http-server] is already defined in file
/home/egerlach-/tmp/test.pp at line 15
</pre>
Attached are a type, provider, and test case which trigger this bug. Run the
test case twice to trigger (once to create the file, once to trigger). It's
not confined to this type, though. You can also use the test case in #2111,
but doing so will also trigger the infinite recursion bug (I found #2111 when
trying to create a simple test for this).
--
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
-~----------~----~----~----~------~----~------~--~---