From: Zack Cerza Date: Fri, 11 Oct 2013 17:48:31 +0000 (-0500) Subject: Ignore the exit code of ssh-keyscan X-Git-Tag: 1.1.0~1806^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d341b588a792fa15651696a42b869d4019dcdbe1;p=teuthology.git Ignore the exit code of ssh-keyscan Signed-off-by: Zack Cerza --- diff --git a/teuthology/lock.py b/teuthology/lock.py index 97d923e27..1b080aeaa 100644 --- a/teuthology/lock.py +++ b/teuthology/lock.py @@ -348,7 +348,11 @@ def keyscan_check(ctx, machines): _, machines[i] = machine.rsplit('@') args = ['ssh-keyscan'] args.extend(machines) - out = subprocess.check_output(args) + p = subprocess.Popen( + args=args, + stdout=subprocess.PIPE, + ) + out, err = p.communicate() return (out, current_locks)