diff options
author | Seth Vidal <skvidal@fedoraproject.org> | 2013-07-08 11:40:56 -0400 |
---|---|---|
committer | Seth Vidal <skvidal@fedoraproject.org> | 2013-07-08 11:40:56 -0400 |
commit | 35f1328a492e78152be5017dcd4660744e616699 (patch) | |
tree | b13dc679dafb795101e7eba7b62db87b1c3160c4 /callback_plugins | |
parent | 3bfedc402925600c4a1e1dce587a6b9289874d50 (diff) | |
download | ansible-35f1328a492e78152be5017dcd4660744e616699.tar.gz ansible-35f1328a492e78152be5017dcd4660744e616699.tar.xz ansible-35f1328a492e78152be5017dcd4660744e616699.zip |
make sure we ALWAYS get the userid
Diffstat (limited to 'callback_plugins')
-rw-r--r-- | callback_plugins/logdetail.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/callback_plugins/logdetail.py b/callback_plugins/logdetail.py index 6aa8f8b9b..1c24f51ca 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): |