Skip to content
Snippets Groups Projects
Commit 61318828 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Changed worker SSH test timeout.

parent cb6c4330
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ def check_ssh(ip): ...@@ -37,7 +37,7 @@ def check_ssh(ip):
cmd = 'ssh -o StrictHostKeyChecking=no -o PasswordAuthentication=no %s ls /tmp' % ip cmd = 'ssh -o StrictHostKeyChecking=no -o PasswordAuthentication=no %s ls /tmp' % ip
print('Connecting to MediaWorker:\n%s' % cmd) print('Connecting to MediaWorker:\n%s' % cmd)
try: try:
subprocess.check_output(cmd, shell=True, timeout=2) subprocess.check_output(cmd, shell=True, timeout=5)
print('%sLogged in successfully in "%s".%s' % (GREEN, ip, DEF)) print('%sLogged in successfully in "%s".%s' % (GREEN, ip, DEF))
except subprocess.CalledProcessError: except subprocess.CalledProcessError:
print('%sFailed to login using SSH, run "ssh-copy-id %s".%s' % (RED, ip, DEF)) print('%sFailed to login using SSH, run "ssh-copy-id %s".%s' % (RED, ip, DEF))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment