From: Kyr Shatskyy Date: Mon, 4 Feb 2019 17:56:34 +0000 (+0100) Subject: misc: ssh_keyscan_wait should use _ssh_keyscan X-Git-Tag: 1.1.0~272^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=9b1661317389b53a911593664f30578e94aae315;p=teuthology.git misc: ssh_keyscan_wait should use _ssh_keyscan After ssh_keyscan refactoring ssh_keyscan_wait should be using the _ssh_keyscan instead. Signed-off-by: Kyr --- diff --git a/teuthology/misc.py b/teuthology/misc.py index c6fd70682e..2969ab9974 100644 --- a/teuthology/misc.py +++ b/teuthology/misc.py @@ -1230,8 +1230,8 @@ def ssh_keyscan_wait(hostname): action="ssh_keyscan_wait " + hostname) as proceed: success = False while proceed(): - keys_dict = ssh_keyscan([hostname]) - if len(keys_dict) == 1: + key = _ssh_keyscan(hostname) + if key: success = True break log.info("try ssh_keyscan again for " + str(hostname))