mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
add task_userid to any task not just ansible_cmd
This commit is contained in:
@@ -119,8 +119,6 @@ class LogMech(object):
|
||||
data['task_start'] = self._last_task_start
|
||||
data['task_end'] = time.time()
|
||||
data.update(self.task_to_json(task))
|
||||
|
||||
if self.playbook_id == 'ansible-cmd':
|
||||
data['task_userid'] = os.getlogin()
|
||||
|
||||
if category == 'OK' and data.get('changed', False):
|
||||
|
||||
Reference in New Issue
Block a user