Some more attribute fixups

This commit is contained in:
Toshio くらとみ 2016-01-30 06:04:49 +00:00
parent 242b04b4fe
commit 89eec9b7af
2 changed files with 10 additions and 4 deletions

View file

@ -98,8 +98,8 @@ class LogMech(object):
def task_to_json(self, task):
res = {}
res['task_name'] = task.name
res['task_module'] = task.module_name
res['task_args'] = task.module_args
res['task_module'] = task.action
res['task_args'] = task.args
if self.playbook_id == 'ansible-cmd':
res['task_userid'] = getlogin()
for k in ("delegate_to", "environment", "with_first_found",