summaryrefslogtreecommitdiffstats
path: root/callback_plugins
diff options
context:
space:
mode:
authorRalph Bean <rbean@redhat.com>2015-02-02 15:34:41 +0000
committerRalph Bean <rbean@redhat.com>2015-02-02 15:34:48 +0000
commit9671d2bb8c0bd5d068f0afe2d140d7e4ac066bba (patch)
tree8c9a07208f154928bf81eae833ce877251713f8e /callback_plugins
parent31c2f114115b8f6177a8d59c333620fd7e872f3d (diff)
downloadansible-9671d2bb8c0bd5d068f0afe2d140d7e4ac066bba.tar.gz
ansible-9671d2bb8c0bd5d068f0afe2d140d7e4ac066bba.tar.xz
ansible-9671d2bb8c0bd5d068f0afe2d140d7e4ac066bba.zip
Make sure to strip any newlines off the name.
Diffstat (limited to 'callback_plugins')
-rw-r--r--callback_plugins/logdetail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/callback_plugins/logdetail.py b/callback_plugins/logdetail.py
index d4f05b4a5..bab951b43 100644
--- a/callback_plugins/logdetail.py
+++ b/callback_plugins/logdetail.py
@@ -141,7 +141,7 @@ class LogMech(object):
sanitize_host = host.replace(' ', '_').replace('>', '-')
fd = open(self.logpath_play + '/' + sanitize_host + '.log', 'a')
now = time.strftime(TIME_FORMAT, time.localtime())
- fd.write(MSG_FORMAT % dict(now=now, name=name, count=count, category=category, data=json.dumps(data)))
+ fd.write(MSG_FORMAT % dict(now=now, name=name.strip(), count=count, category=category, data=json.dumps(data)))
fd.close()