diff options
author | Toshio Kuratomi <a.badger@gmail.com> | 2014-12-16 12:42:06 -0800 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2014-12-16 12:42:06 -0800 |
commit | d1e27fe81938599ab5b3c6fb1ac42160a3e11f1e (patch) | |
tree | 5c69a708d40a63bbabc71c14d0db214712e6e2ab | |
parent | b74a02301bd65264c681c267fa8396585541d327 (diff) | |
parent | b84fba44391c9fa48c16674d47760cbfd249a102 (diff) | |
download | ansible-d1e27fe81938599ab5b3c6fb1ac42160a3e11f1e.tar.gz |
Merge pull request #9805 from mscherer/fix_9395
Strip the line to filter lines composed of only whitespaces
-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() |