Skip to content

[RELOPS-2269] Fix remove_old_hg triggering on puppet-managed symlink#1110

Open
rcurranmoz wants to merge 3 commits intomasterfrom
mercurial-remove-old-hg-fix
Open

[RELOPS-2269] Fix remove_old_hg triggering on puppet-managed symlink#1110
rcurranmoz wants to merge 3 commits intomasterfrom
mercurial-remove-old-hg-fix

Conversation

@rcurranmoz
Copy link
Copy Markdown
Contributor

The onlyif 'test -f' check matched the /usr/local/bin/hg symlink created by the File resource, causing puppet to delete and recreate it on every apply. Narrow the check to regular files only so the exec only fires when the old hg binary (not a symlink) is present.

rcurranmoz and others added 3 commits March 16, 2026 12:56
The onlyif 'test -f' check matched the /usr/local/bin/hg symlink created
by the File resource, causing puppet to delete and recreate it on every
apply. Narrow the check to regular files only so the exec only fires when
the old hg binary (not a symlink) is present.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@rcurranmoz rcurranmoz changed the title Fix remove_old_hg triggering on puppet-managed symlink [RELOPS-2269] Fix remove_old_hg triggering on puppet-managed symlink Mar 24, 2026
Copy link
Copy Markdown
Member

@aerickson aerickson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

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.

2 participants