Skip to content

Silence agent6_extra_options notification on default params#449

Merged
truthbk merged 2 commits intoDataDog:masterfrom
spectralblu:master
Jul 18, 2018
Merged

Silence agent6_extra_options notification on default params#449
truthbk merged 2 commits intoDataDog:masterfrom
spectralblu:master

Conversation

@spectralblu
Copy link
Copy Markdown
Contributor

I updated to 2.3.0 of this module today (and just realized it was updated 2 days ago).

Since upgrading, I've had extraneous noise in my puppet run outputs that I tracked down to this.

The default values of these params is an empty string '', which is interpreted by Puppet 4+ in boolean situations as true, hence these notify's are firing even when those parameters aren't supplied. (https://puppet.com/docs/puppet/4.10/lang_updating_manifests.html#empty-strings-in-boolean-context-are-true)

Copy link
Copy Markdown
Member

@truthbk truthbk left a comment

Choose a reason for hiding this comment

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

Ugh, we got bit by the boolean behavior with on puppet 4+, my bad! Thank you very much for this 🙇 - we'll make this available in the next release (bugfix or minor not sure what will come first).

@truthbk truthbk merged commit 06f76c2 into DataDog:master Jul 18, 2018
@fatbasstard
Copy link
Copy Markdown

Thanx for this fix, we're encountering the same noise now 👍

@truthbk truthbk added this to the 2.4.0 milestone Dec 20, 2018
cegeka-jenkins pushed a commit to cegeka/puppet-datadog_agent that referenced this pull request Apr 6, 2020
)

* Silence agent6_extra_options notification on default params

* Add specs to check for extraneous notifys
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