mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 02:47:36 -02:30
Merge pull request #6140 from ryanpetrello/fix-ansible-23-setup-payload
work around a change in ansible 2.3 to `Task.get_name()`
This commit is contained in:
@@ -301,7 +301,7 @@ class BaseCallbackModule(CallbackBase):
|
|||||||
|
|
||||||
# strip environment vars from the job event; it already exists on the
|
# strip environment vars from the job event; it already exists on the
|
||||||
# job and sensitive values are filtered there
|
# 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)
|
result._result.get('ansible_facts', {}).pop('ansible_env', None)
|
||||||
|
|
||||||
event_data = dict(
|
event_data = dict(
|
||||||
|
|||||||
Reference in New Issue
Block a user