From b601d6a531c25df41305182413901f081c317cba Mon Sep 17 00:00:00 2001 From: Kyr Shatskyy Date: Mon, 4 Feb 2019 18:50:58 +0100 Subject: [PATCH] misc: ssh_keyscan_wait should not raise any exceptions The ssh_keyscan_wait raises exception MaxWhileTries while it should return False. Signed-off-by: Kyr --- teuthology/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/misc.py b/teuthology/misc.py index 9bd430797a..c6fd70682e 100644 --- a/teuthology/misc.py +++ b/teuthology/misc.py @@ -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(): -- 2.39.5