Uses correct zero value for lgpo LockoutDuration#56408
Uses correct zero value for lgpo LockoutDuration#56408dwoz merged 2 commits intosaltstack:masterfrom
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
LockoutDurationWhat issues does this PR fix or reference?
Fixes #56406
Previous Behavior
Setting the
LockoutDurationto 0 with certain combinations ofLockoutThresholdandLockoutWindowwould throw a CommandExecutionError.New Behavior
The
LockoutDurationzero value is set correctly.Tests written?
Yes
Commits signed with GPG?
Yes