Skip to content

Commit

Permalink
Merge pull request #1888 from ceph/keyscan-tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
zmc authored Sep 5, 2023
2 parents f9a8556 + dbd55e3 commit 54e62bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion teuthology/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1138,9 +1138,11 @@ def _ssh_keyscan(hostname):
line = line.strip()
if line and not line.startswith('#'):
log.error(line)
keys = list()
for line in p.stdout:
host, key = line.strip().decode().split(' ', 1)
return key
keys.append(key)
return sorted(keys)[0]


def ssh_keyscan_wait(hostname):
Expand Down

0 comments on commit 54e62bc

Please sign in to comment.