From 35f1328a492e78152be5017dcd4660744e616699 Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: Mon, 8 Jul 2013 11:40:56 -0400 Subject: [PATCH] make sure we ALWAYS get the userid --- callback_plugins/logdetail.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/callback_plugins/logdetail.py b/callback_plugins/logdetail.py index 6aa8f8b9b7..1c24f51ca8 100644 --- a/callback_plugins/logdetail.py +++ b/callback_plugins/logdetail.py @@ -126,6 +126,8 @@ class LogMech(object): data['task_start'] = self._last_task_start data['task_end'] = time.time() data.update(self.task_to_json(task)) + + if 'task_userid' not in data: data['task_userid'] = getlogin() if category == 'OK' and data.get('changed', False):