From 1c04c7aff38a1558252e7dac40f82b3ec6b248ac Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Tue, 20 May 2014 18:33:36 -0500 Subject: [PATCH] Use new ssh_keyscan() function Signed-off-by: Zack Cerza --- teuthology/lock.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/teuthology/lock.py b/teuthology/lock.py index b57dadc41b..3fc73b591a 100644 --- a/teuthology/lock.py +++ b/teuthology/lock.py @@ -298,12 +298,11 @@ def list_locks(machine_type=None): def update_lock(name, description=None, status=None, ssh_pub_key=None): status_info = get_status(name) - phys_host = status_info['vpshost'] - if phys_host: - keyscan_out = '' - while not keyscan_out: + if status_info['is_vm']: + ssh_key = None + while not ssh_key: time.sleep(10) - keyscan_out, _ = keyscan_check([name]) + ssh_key = ssh_keyscan(name) updated = {} if description is not None: updated['description'] = description -- 2.39.5