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

disable security for ssh check

parent bda57aa1
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ def test_ssh(server): ...@@ -19,7 +19,7 @@ def test_ssh(server):
def test_last_backup_is_recent(server, client): def test_last_backup_is_recent(server, client):
path = '/backup/%s/current' % client path = '/backup/%s/current' % client
cmd = 'ssh -y %s ls -l %s | grep current' % (server, path) cmd = 'ssh -o StrictHostKeyChecking=no %s ls -l %s | grep current' % (server, path)
status, out = subprocess.getstatusoutput(cmd) status, out = subprocess.getstatusoutput(cmd)
if status == 0: if status == 0:
date = out.strip().split(' ')[-2] date = out.strip().split(' ')[-2]
......
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