diff --git a/lib/ansible/runner/connection_plugins/ssh.py b/lib/ansible/runner/connection_plugins/ssh.py index e95cfafad78..b1743963c0f 100644 --- a/lib/ansible/runner/connection_plugins/ssh.py +++ b/lib/ansible/runner/connection_plugins/ssh.py @@ -234,6 +234,8 @@ class Connection(object): 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: