Merge pull request #2064 from wimnat/feature/issue-2063
Remove unnecessary json.loads
This commit is contained in:
commit
8a7946b91d
1 changed files with 1 additions and 1 deletions
|
@ -316,7 +316,7 @@ def main():
|
||||||
json_data.close()
|
json_data.close()
|
||||||
elif module.params.get('policy_json') != None:
|
elif module.params.get('policy_json') != None:
|
||||||
try:
|
try:
|
||||||
pdoc = json.dumps(json.loads(module.params.get('policy_json')))
|
pdoc = json.dumps(module.params.get('policy_json'))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
module.fail_json(msg=str(e) + '\n' + module.params.get('policy_json'))
|
module.fail_json(msg=str(e) + '\n' + module.params.get('policy_json'))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue