-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Uses correct zero value for lgpo LockoutDuration #56408
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
Conversation
072117f
to
2e91a12
Compare
There is a merge conflict here that needs to be resolved and pre-commit is failing. |
f1088ca
to
efd3d1a
Compare
@Ch3LL I believe I fixed it up, but I do not use pre-commit and don't plan to start just for this project. If the test outputs the diff it wants, I'll be happy to apply it. |
yep it does. you can see it here: https://jenkinsci.saltstack.com/job/pr-pre-commit/job/PR-56408/2/console |
efd3d1a
to
a97f7ae
Compare
a97f7ae
to
a490281
Compare
a490281
to
8f79096
Compare
Ok, resolved the conflict, and pre-commit is good now! |
@Ch3LL here's a nifty looking github action that might simplify the black requirement for prs... https://github.com/cclauss/autoblack |
thanks for updating with that diff, appreciate it. thanks for linking that tool. It does look like that tool will edit the code for the user. ping @s0undt3ch and @waynew i know you two were stewarding the black project. I faintly remember there being a reason we didn't want to automatically edit the code for the user? |
ping @twangboy this is awaiting your re-review |
@s0undt3ch well that's a bummer. I dug a little more and found a solution using comments to dispatch and process commands. Looks rather a bit more involved to setup. But still would be a lot of value for a project with as many contributors as salt. Maybe some chatbot, or your own Jenkins server, could do it? |
What does this PR do?
Updates win_lgpo execution module to use the correct zero value for
LockoutDuration
What issues does this PR fix or reference?
Fixes #56406
Previous Behavior
Setting the
LockoutDuration
to 0 with certain combinations ofLockoutThreshold
andLockoutWindow
would throw a CommandExecutionError.New Behavior
The
LockoutDuration
zero value is set correctly.Tests written?
Yes
Commits signed with GPG?
Yes