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:
parent
135e7c60de
commit
540061c9fc
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue