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

(FACT-2320) Added warnonce method #2084

Merged
merged 1 commit into from
Sep 15, 2020

Conversation

Filipovici-Andrei
Copy link
Contributor

@Filipovici-Andrei Filipovici-Andrei commented Sep 14, 2020

Added the warnonce method to facter's API.
It prints the same warning message only once.

Usage:

Facter.warnonce(<warning message>)

The warning message parameter is treated as an object and
.to_s is used to extract the warning message from it.

@Filipovici-Andrei Filipovici-Andrei added the enhancement New feature or enhancement label Sep 14, 2020
@Filipovici-Andrei Filipovici-Andrei requested review from a team September 14, 2020 11:42
@Filipovici-Andrei Filipovici-Andrei force-pushed the FACT-2320 branch 3 times, most recently from c6cbc1e to a8f7a4b Compare September 14, 2020 12:54
@puppetcla
Copy link

CLA signed by all contributors.

@Filipovici-Andrei Filipovici-Andrei merged commit 78ec4a6 into puppetlabs:main Sep 15, 2020
@Filipovici-Andrei Filipovici-Andrei deleted the FACT-2320 branch September 15, 2020 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants