mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-17 06:11:30 +00:00
Elapsed time should account for the delay
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