mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix issue when timeout and state=present (#43464)
* Fix issue when timeout and state=present * added changelog fragment
This commit is contained in:
parent
86f96d0212
commit
f588b1cdf9
2 changed files with 8 additions and 6 deletions
2
changelogs/fragments/win_wait_for-timeout.yaml
Normal file
2
changelogs/fragments/win_wait_for-timeout.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- win_wait_for - fix issue where timeout doesn't wait unless state=drained - https://github.com/ansible/ansible/issues/43446
|
|
@ -101,7 +101,7 @@ if ($delay -ne $null) {
|
|||
}
|
||||
|
||||
$attempts = 0
|
||||
if ($path -eq $null -and $port -eq $null -and $state -eq "drained") {
|
||||
if ($path -eq $null -and $port -eq $null -and $state -ne "drained") {
|
||||
Start-Sleep -Seconds $timeout
|
||||
} elseif ($path -ne $null) {
|
||||
if ($state -in @("present", "started")) {
|
||||
|
|
Loading…
Reference in a new issue