Fix issue when timeout and state=present (#43464)

* Fix issue when timeout and state=present

* added changelog fragment
pull/44794/head
Dag Wieers 7 years ago committed by Jordan Borean
parent 86f96d0212
commit f588b1cdf9

@ -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…
Cancel
Save