1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Remove unnecessary json.loads

This commit is contained in:
wimnat 2015-09-14 14:23:34 +10:00 committed by Matt Clay
parent 135e7c60de
commit 540061c9fc

View file

@ -316,7 +316,7 @@ def main():
json_data.close()
elif module.params.get('policy_json') != None:
try:
pdoc = json.dumps(json.loads(module.params.get('policy_json')))
pdoc = json.dumps(module.params.get('policy_json'))
except Exception as e:
module.fail_json(msg=str(e) + '\n' + module.params.get('policy_json'))
else: