Skip to content

Notify now honors withpath parameter#432

Open
acesso wants to merge 1 commit into
OpenVoxProject:mainfrom
acesso:no-duplicate-notify
Open

Notify now honors withpath parameter#432
acesso wants to merge 1 commit into
OpenVoxProject:mainfrom
acesso:no-duplicate-notify

Conversation

@acesso
Copy link
Copy Markdown

@acesso acesso commented May 7, 2026

When running Puppet agent with the -t flag, notify resources currently log duplicate messages: one for the explicit message itself, and another for the resource state change (creation/sync). This creates unnecessary log noise, making it harder to spot actual infrastructure changes.

This change modifies the notify resource to always be considered as "existing." By preventing the resource from triggering an out-of-sync event, Puppet will no longer log the redundant state-change notification, resulting in cleaner and more readable execution logs.

The withpath parameter now makes sense to be used, since the possible need to actually show the resource path.

Checklist

I have:

  • read the CONTRIBUTING.md document
  • read and accepted the Developer Certificate of Origin document and added a Signed-off-by annotation to each of my commits
  • tested this code
  • included documentation (including possible behaviour changes)
  • documented the code
  • added or modified regression test(s)
  • added or modified unit test(s)

Notify should not represent a state of a resource since it only "exists"
during execution time. This change proposes that it should be considered
to always "exist", thus avoiding a change notification.

Signed-off-by: Igor Nogueira de Oliveira <igor@acumera.com>
@acesso acesso force-pushed the no-duplicate-notify branch from 50b9505 to 230960a Compare May 7, 2026 17:28
@bastelfreak bastelfreak requested a review from Sharpie May 7, 2026 18:36
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.

1 participant