1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #10320 from bcoca/ssh_fix_notokens

skips certain ssh errors and attempts to continue
This commit is contained in:
Brian Coca 2015-02-25 10:34:04 -05:00
commit a1e2ae083d

View file

@ -234,6 +234,8 @@ class Connection(object):
if line is None or " " not in line: if line is None or " " not in line:
continue continue
tokens = line.split() tokens = line.split()
if not tokens:
continue
if tokens[0].find(self.HASHED_KEY_MAGIC) == 0: if tokens[0].find(self.HASHED_KEY_MAGIC) == 0:
# this is a hashed known host entry # this is a hashed known host entry
try: try: