Closed shaunrampersad closed 4 years ago
@alexjfisher It should not be a problem to use ensure_resource
instead of if ! defined( ... )
. I did a restart of the Travis CI build and everything is green, again.
@shaunrampersad Maybe we should also remove if ! defined( ... )
from init.pp
.
@dhoppe I'd prefer we fix the actual bug rather than papering over it. ensure_resources will still create duplicate resource errors if the parameters of each resource don't match. https://github.com/puppetlabs/puppetlabs-stdlib/blob/master/lib/puppet/parser/functions/ensure_resource.rb#L18
I think the tests pass because they aren't thorough enough.
I've added an extra commit to this PR in https://github.com/voxpupuli/puppet-staging/pull/114 The added test shows a duplicate resource error can still occur.
I haven't got time just right now, but I'll work on the actual fix soon.
I've opened https://github.com/voxpupuli/puppet-staging/pull/115
@shaunrampersad If possible, could you let me know if this fixes your issue? (It might not, as your issue seemed to be slightly different from the one I got whilst trying to reproduce).
@shaunrampersad ping
Dear @shaunrampersad, thanks for the PR!
This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase?
You can find my sourcecode at voxpupuli/vox-pupuli-tasks
This module is deprecated in favor of puppet-archive and as such won't receive any more updates.
Fix for #109