mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-02 16:53:11 +00:00
Fixes bug #10225 - Runtime error
Prevents an exception from raising in some corner cases where SSH might be misconfigured. It seems not to fix a specific problem, although it makes the method a little bit more solid.
This commit is contained in:
@@ -237,6 +237,8 @@ class Connection(ConnectionBase):
|
||||
if line is None or " " not in line:
|
||||
continue
|
||||
tokens = line.split()
|
||||
if not tokens:
|
||||
continue
|
||||
if tokens[0].find(self.HASHED_KEY_MAGIC) == 0:
|
||||
# this is a hashed known host entry
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user