Merge pull request #2064 from wimnat/feature/issue-2063

Remove unnecessary json.loads
This commit is contained in:
Brian Coca 2015-09-14 16:46:34 -04:00
commit 8a7946b91d

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: