Skip to content
Snippets Groups Projects
Commit 129ec4df authored by Florent Thiery's avatar Florent Thiery
Browse files

fix error, refs #20596

parent 2d14f8e9
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,10 @@ def check_celerity_connectivity(ip):
h = conf.get('MS_SERVER_NAME')
cmd = "ssh %s curl -k https://%s:6200" % (ip, h)
print('Checking celerity connectivity: %s' % cmd)
d = subprocess.check_output(cmd, shell=True, timeout=5)
try:
d = subprocess.check_output(cmd, shell=True, timeout=5)
except exception:
d = ''
if "Celerity tasks server" in d:
print('%sSuccessfully reached tasks server%s' % (GREEN, DEF))
return True
......
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