mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 11:20:39 -03:30
fixes ansible callback import json warning
[WARNING]: Failure using method (v2_runner_on_ok) in callback plugin (<awx_display_callback.module.AWXDefaultCallbackModule object at 0x47f6090>): 'module' object has no attribute 'dumps' The above error is thrown by ansible if callback plugins don't respect the same import precedence configuration as Ansible. ansible callback/* dir includes a json.py file. This is imported by ansible callback/__init__.py when a callback plugin implementation imports from Ansible callback base without setting the correct import precedence.
This commit is contained in:
parent
353a9a55c7
commit
4e2cf62e89
@ -1,3 +1,8 @@
|
||||
# Copyright (c) 2017 Ansible by Red Hat
|
||||
# All Rights Reserved
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
from collections import OrderedDict
|
||||
import json
|
||||
import mock
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user