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

Add use_strict_setting parameter to deprecation function #1378

Merged
merged 1 commit into from Jun 27, 2023

Conversation

alexjfisher
Copy link
Collaborator

In this change, an optional third parameter is added to the deprecation function. The default behaviour remains the same, but when the third parameter is set to false, Puppet's strict setting is ignored. This means that even if strict is set to error, no exception will be raised when this function is called, and a warning will be logged instead.

This is a prerequisite for #1373

In this change, an optional third parameter is added to the
`deprecation` function.  The default behaviour remains the same, but
when the third parameter is set to `false`, Puppet's `strict` setting is
ignored. This means that even if `strict` is set to `error`, no
exception will be raised when this function is called, and a warning
will be logged instead.

This is a prerequisite for puppetlabs#1373
@chelnak
Copy link
Contributor

chelnak commented Jun 27, 2023

Are the acceptance tests expected?

@alexjfisher
Copy link
Collaborator Author

Are the acceptance tests expected

@chelnak Sorry, not following. How do you mean? Are you referring to the failing tests that github is highlighting? (If so, I think those are all the tests marked as pending and unrelated)

@chelnak
Copy link
Contributor

chelnak commented Jun 27, 2023

Ha! I was trying to multitask and failed.

Yes I was referring to the failed test. It's unusual for a pending test to make the run red.

Can you just double check it?

@alexjfisher
Copy link
Collaborator Author

Ha! I was trying to multitask and failed.

Yes I was referring to the failed test. It's unusual for a pending test to make the run red.

Which failed test? I can't see any that are red.

@chelnak
Copy link
Contributor

chelnak commented Jun 27, 2023

I think it was transient! I re-kicked the failed one and it's green now.

@chelnak chelnak merged commit 4b64d06 into puppetlabs:main Jun 27, 2023
45 checks passed
@alexjfisher
Copy link
Collaborator Author

I think it was transient! I re-kicked the failed one and it's green now.

ah, thanks. That makes more sense now. Thought one of us was seeing things! :)

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

Successfully merging this pull request may close these issues.

None yet

4 participants