]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
misc: ssh_keyscan_wait should not raise any exceptions
authorKyr Shatskyy <kyrylo.shatskyy@suse.com>
Mon, 4 Feb 2019 17:50:58 +0000 (18:50 +0100)
committerKyr Shatskyy <kyrylo.shatskyy@gmail.com>
Mon, 4 Feb 2019 23:13:15 +0000 (00:13 +0100)
The ssh_keyscan_wait raises exception MaxWhileTries while
it should return False.

Signed-off-by: Kyr <kyrylo.shatskyy@suse.com>
teuthology/misc.py

index 9bd430797a333f315034fa2c878112c338d6b007..c6fd70682eb1796875a00288d2358202c133cffb 100644 (file)
@@ -1226,7 +1226,7 @@ def ssh_keyscan_wait(hostname):
     False otherwise. Try again if ssh-keyscan timesout.
     :param hostname: on which ssh-keyscan is run
     """
-    with safe_while(sleep=6, tries=100,
+    with safe_while(sleep=6, tries=100, _raise=False,
                     action="ssh_keyscan_wait " + hostname) as proceed:
         success = False
         while proceed():