HomeSoftware Heritage

Fix ensure => absent with path => set.
b07f338f29c0Unpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

Fix ensure => absent with path => set.

The current code doesn't correctly account for an absent with a
path set, incorrectly trying to remove $name instead. Fixing this
raised the issue that fragments left with no ensure will fail when
absent is set as the fragdir is deleted.

As a workaround for this we check the ensure parameter from the
concat{} resource with getparam() and then pass that to the fragment
if no specific ensure was passed in. This effectively ensures
fragments inherit their parents ensure status.

Details

Provenance
Ashley Penney <ashley.penney@puppetlabs.com>Authored on
olasdPushed on Sep 10 2015, 1:22 PM
Parents
rSPCATfd8ca0fb8b3e: Merge pull request #131 from hunner/update_specs
Branches
Unknown
Tags
Unknown

Event Timeline

Ashley Penney <ashley.penney@puppetlabs.com> committed rSPCATb07f338f29c0: Fix ensure => absent with path => set. (authored by Ashley Penney <ashley.penney@puppetlabs.com>).Jan 21 2014, 10:28 PM