mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Merge pull request #3368 from j2sol/wait_for_improv
Improvements to wait_for module
This commit is contained in:
@@ -92,11 +92,11 @@ def main():
|
||||
port = int(params['port'])
|
||||
state = params['state']
|
||||
|
||||
start = datetime.datetime.now()
|
||||
|
||||
if delay:
|
||||
time.sleep(delay)
|
||||
|
||||
start = datetime.datetime.now()
|
||||
|
||||
if state == 'stopped':
|
||||
### first wait for the host to go down
|
||||
end = start + datetime.timedelta(seconds=timeout)
|
||||
|
||||
Reference in New Issue
Block a user