1
0
Fork 0
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:
Dag Wieers 2018-08-28 23:31:24 +02:00 committed by Jordan Borean
parent 86f96d0212
commit f588b1cdf9
2 changed files with 8 additions and 6 deletions

View 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

View file

@ -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")) {