diff options
author | Michael Scherer <misc@zarb.org> | 2014-12-13 20:56:06 +0100 |
---|---|---|
committer | James Cammarata <jimi@sngx.net> | 2015-02-17 13:34:56 -0600 |
commit | ad823766d2e53caf29c807bf3c473a2eef11853c (patch) | |
tree | 024e1599e5620f68db6505d73ddeaa7e654d7952 | |
parent | 4fa5db9a0317fbaaf5e95b5081784659a891d005 (diff) | |
download | ansible-ad823766d2e53caf29c807bf3c473a2eef11853c.tar.gz |
Strip the line to filter lines composed of only whitespaces
Fix #9395
-rw-r--r-- | lib/ansible/runner/connection_plugins/ssh.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ansible/runner/connection_plugins/ssh.py b/lib/ansible/runner/connection_plugins/ssh.py index c2fd9666eb..104f60fd35 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() |