]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
misc: allow _ssh_keyscan return None again 1990/head
authorKyr Shatskyy <kyrylo.shatskyy@clyso.com>
Wed, 31 Jul 2024 21:48:09 +0000 (23:48 +0200)
committerKyr Shatskyy <kyrylo.shatskyy@clyso.com>
Wed, 7 Aug 2024 20:32:54 +0000 (22:32 +0200)
commit837a0e188680456723805204ad87a8f4098203cd
tree0b2bd02af3c7c2ec0d77281b6c6c270d9f86900f
parente3a44bb2fafd0e84b176e71c232dede374a92039
misc: allow _ssh_keyscan return None again

A host may not have any keys, so _ssh_keyscan should return None,
instead of failing with error:

    IndexError: list index out of range

Fixes: dbd55e37563ce0fde01e1bfa19ca2fd2c03f0194
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@clyso.com>
teuthology/misc.py