mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
work around a change in ansible 2.3 to Task.get_name()
Properly detect setup tasks so that we can filter out sensitive variables from the `ansible_facts` portion of the event payload.
This commit is contained in:
parent
3c0d4bf134
commit
f6046d47c9
@ -301,7 +301,7 @@ class BaseCallbackModule(CallbackBase):
|
||||
|
||||
# strip environment vars from the job event; it already exists on the
|
||||
# job and sensitive values are filtered there
|
||||
if result._task.get_name() == 'setup':
|
||||
if result._task.action in ('setup', 'gather_facts'):
|
||||
result._result.get('ansible_facts', {}).pop('ansible_env', None)
|
||||
|
||||
event_data = dict(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user