Merge pull request #3368 from j2sol/wait_for_improv

Improvements to wait_for module
This commit is contained in:
Michael DeHaan 2013-06-30 09:20:12 -07:00
commit 6d5ac43dcb

View file

@ -92,11 +92,11 @@ def main():
port = int(params['port']) port = int(params['port'])
state = params['state'] state = params['state']
start = datetime.datetime.now()
if delay: if delay:
time.sleep(delay) time.sleep(delay)
start = datetime.datetime.now()
if state == 'stopped': if state == 'stopped':
### first wait for the host to go down ### first wait for the host to go down
end = start + datetime.timedelta(seconds=timeout) end = start + datetime.timedelta(seconds=timeout)