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