summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToshio Kuratomi <a.badger@gmail.com>2014-12-16 12:42:06 -0800
committerToshio Kuratomi <a.badger@gmail.com>2014-12-16 12:42:06 -0800
commitd1e27fe81938599ab5b3c6fb1ac42160a3e11f1e (patch)
tree5c69a708d40a63bbabc71c14d0db214712e6e2ab
parentb74a02301bd65264c681c267fa8396585541d327 (diff)
parentb84fba44391c9fa48c16674d47760cbfd249a102 (diff)
downloadansible-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.py1
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()