Skip to content

(22329) Only delete hiera files in the preflight#149

Merged
haus merged 1 commit intopuppetlabs:masterfrom
MosesMendoza:ticket/master/22329_fix_osx_preflight
Aug 28, 2013
Merged

(22329) Only delete hiera files in the preflight#149
haus merged 1 commit intopuppetlabs:masterfrom
MosesMendoza:ticket/master/22329_fix_osx_preflight

Conversation

@MosesMendoza
Copy link
Contributor

Previously, the OSX preflight removed the contents of that ‘hiera’ directory,
which also happens to be where the puppet.pkg places the contents of
hiera_puppet. The fix is simple – from the hiera dir, only remove the files
that exist in the ‘hiera’ project, not those in puppet. This commit
accomplishes this by only deleting files, not the directories. It's a bit
crufty, but its better than clobbering the wrong files.

Signed-off-by: Moses Mendoza moses@puppetlabs.com

Previously, the OSX preflight removed the contents of that ‘hiera’ directory,
which also happens to be where the puppet.pkg places the contents of
hiera_puppet. The fix is simple – from the hiera dir, only remove the files
that exist in the ‘hiera’ project, not those in puppet. This commit
accomplishes this by only deleting files, not the directories. It's a bit
crufty, but its better than clobbering the wrong files.

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
haus added a commit that referenced this pull request Aug 28, 2013
…_preflight

(22329) Only delete hiera files in the preflight
@haus haus merged commit ad3b522 into puppetlabs:master Aug 28, 2013
@puppetcla
Copy link

CLA signed by all contributors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants