Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(GH-29) Removes validate_bool() usage #30

Merged
merged 1 commit into from
Jun 3, 2020

Conversation

chadh
Copy link

@chadh chadh commented Jun 3, 2020

Description

Replaces validate_bool() usage with Puppet Types

Related Issue

Fixes #29 .

Motivation and Context

Per the issue, the validate_bool() function is deprecated and produces a noisy warning in the puppetserver logs.

How Has This Been Tested?

There is a unit test that covers the type checking. I updated the exception, but the tests still pass.

General

  • Update README.md with any necessary configuration snippets

  • New parameters are documented

  • New parameters have tests

  • Tests pass - bundle exec rake validate lint spec

@treydock
Copy link
Collaborator

treydock commented Jun 3, 2020

@chadh This looks good but if you could please remove the changes to REFERENCES.md, CHANGELOG.md and metadata.json. Those chnages are made as part of the standard release process for this module so not necessary to update those in a pull request.

@chadh
Copy link
Author

chadh commented Jun 3, 2020

for sure. couldn't tell from the CONTRIBUTING.md whether I was supposed to do it or not.

@ghoneycutt
Copy link
Collaborator

@chadh Thanks for the contribution!

@chadh chadh force-pushed the remove_deprecated_function branch from 36021d1 to 45748b0 Compare June 3, 2020 16:37
@chadh
Copy link
Author

chadh commented Jun 3, 2020

Hi Garrett! Need to make time to do a lot more.

Okay, removed those other changes.

Copy link
Collaborator

@ghoneycutt ghoneycutt left a comment

Choose a reason for hiding this comment

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

Pending Travis, this looks good.

@ghoneycutt ghoneycutt merged commit b7bb3e4 into sensu:master Jun 3, 2020
@ghoneycutt
Copy link
Collaborator

Released in v3.5.1

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.

deprecated validate_bool() function
3 participants