mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Reenable unicode=>byte conversion for module parameters to fix integration tests
This commit is contained in:
parent
75546678d9
commit
55bb24fb7d
1 changed files with 3 additions and 0 deletions
|
@ -1447,6 +1447,9 @@ class AnsibleModule(object):
|
|||
print('{"msg": "Error: Module unable to decode valid JSON on stdin. Unable to figure out what parameters were passed", "failed": true}')
|
||||
sys.exit(1)
|
||||
|
||||
if sys.version_info < (3,):
|
||||
params = json_dict_unicode_to_bytes(params)
|
||||
|
||||
try:
|
||||
self.params = params['ANSIBLE_MODULE_ARGS']
|
||||
self.constants = params['ANSIBLE_MODULE_CONSTANTS']
|
||||
|
|
Loading…
Reference in a new issue