From d341b588a792fa15651696a42b869d4019dcdbe1 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Fri, 11 Oct 2013 12:48:31 -0500 Subject: [PATCH] Ignore the exit code of ssh-keyscan Signed-off-by: Zack Cerza --- teuthology/lock.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/teuthology/lock.py b/teuthology/lock.py index 97d923e271..1b080aeaa2 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) -- 2.39.5