diff --git a/v2/ansible/plugins/connections/ssh.py b/v2/ansible/plugins/connections/ssh.py index a79187e535..6c0ab9917c 100644 --- a/v2/ansible/plugins/connections/ssh.py +++ b/v2/ansible/plugins/connections/ssh.py @@ -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: