Stop ticking off Amazon

This commit is contained in:
Thomas S Hatch 2012-08-15 11:58:41 -06:00
parent 1c86336d25
commit a8dd09282b

View File

@ -120,6 +120,7 @@ def wait_for_ssh(host, port=22, timeout=900):
sock.shutdown(2)
return True
except Exception:
time.sleep(1)
if time.time() - start > timeout:
return False