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

improve robustness for approvalrule.pp #29

Merged
merged 2 commits into from
Jul 27, 2019

Conversation

kreeuwijk
Copy link
Contributor

The proposed changes will improve the robustness of the approvalrule.pp manifest. With the original code, I ran into the issue that if the WSUS server is low on memory, sometimes Get-WsusServer fails to complete. This will trip up the unless rule and make Puppet think it needs to re-apply the approval rule. This results in multiple identical copies of the same rule, which trips up other code that isn't expecting >1 result for a specific rule query.

The new code switches to onlyif to account for the occasional failure in Get-WsusServer and not have it result in duplicate rules.

@TraGicCode
Copy link
Owner

Hey,

Sorry for getting back to this so late. I will give this a review by tommorow!

@kreeuwijk
Copy link
Contributor Author

Thanks @TraGicCode !

Copy link
Owner

@TraGicCode TraGicCode left a comment

Choose a reason for hiding this comment

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

LGTM and thank you!

@TraGicCode TraGicCode merged commit 4d272e1 into TraGicCode:master Jul 27, 2019
@kreeuwijk
Copy link
Contributor Author

kreeuwijk commented Jul 30, 2019 via email

@kreeuwijk
Copy link
Contributor Author

kreeuwijk commented Sep 17, 2019 via email

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

Successfully merging this pull request may close these issues.

2 participants