summaryrefslogtreecommitdiffstats
path: root/callback_plugins
diff options
context:
space:
mode:
authorSeth Vidal <skvidal@fedoraproject.org>2013-07-01 17:28:02 +0000
committerSeth Vidal <skvidal@fedoraproject.org>2013-07-01 17:28:02 +0000
commit655b0d9b7bf1593d10e660b01d876619fd1c889f (patch)
treeef9cff2c1d8a2afb6581a5577b346e42ee40a0e1 /callback_plugins
parent1451fc3c61a1da09b8161922bda8e84716f6360c (diff)
downloadansible-655b0d9b7bf1593d10e660b01d876619fd1c889f.tar.gz
ansible-655b0d9b7bf1593d10e660b01d876619fd1c889f.tar.xz
ansible-655b0d9b7bf1593d10e660b01d876619fd1c889f.zip
unreachable returns a string :(
Diffstat (limited to 'callback_plugins')
-rw-r--r--callback_plugins/logdetail.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/callback_plugins/logdetail.py b/callback_plugins/logdetail.py
index ce55c2696..d1d2e4a9c 100644
--- a/callback_plugins/logdetail.py
+++ b/callback_plugins/logdetail.py
@@ -99,7 +99,10 @@ class LogMech(object):
if not host:
host = 'HOSTMISSING'
- name = data.get('module_name',None)
+ if type(data) == dict:
+ name = data.get('module_name',None)
+ else:
+ name = "unknown"
# we're in setup - move the invocation info up one level
@@ -168,9 +171,11 @@ class CallbackModule(object):
res['item'] = item
logmech.log(host, category, res, task, self._task_count)
- def runner_on_unreachable(self, host, res):
+ def runner_on_unreachable(self, host, output):
category = 'UNREACHABLE'
task = getattr(self,'task', None)
+ res = {}
+ res['output'] = output
logmech.log(host, category, res, task, self._task_count)
def runner_on_no_hosts(self):