]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Ignore the exit code of ssh-keyscan
authorZack Cerza <zack@cerza.org>
Fri, 11 Oct 2013 17:48:31 +0000 (12:48 -0500)
committerZack Cerza <zack@cerza.org>
Fri, 11 Oct 2013 17:48:55 +0000 (12:48 -0500)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/lock.py

index 97d923e27111497765e9cb072615c685b32fc8c9..1b080aeaa2001713934535f9273adb8d1904b224 100644 (file)
@@ -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)