From ad823766d2e53caf29c807bf3c473a2eef11853c Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sat, 13 Dec 2014 20:56:06 +0100 Subject: [PATCH] Strip the line to filter lines composed of only whitespaces Fix #9395 --- lib/ansible/runner/connection_plugins/ssh.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/runner/connection_plugins/ssh.py b/lib/ansible/runner/connection_plugins/ssh.py index c2fd9666eb4..104f60fd351 100644 --- a/lib/ansible/runner/connection_plugins/ssh.py +++ b/lib/ansible/runner/connection_plugins/ssh.py @@ -230,6 +230,7 @@ class Connection(object): host_fh.close() for line in data.split("\n"): + line = line.strip() if line is None or " " not in line: continue tokens = line.split()