From 540061c9fc20d2527e136bdc9d9b18fb109979ba Mon Sep 17 00:00:00 2001 From: wimnat Date: Mon, 14 Sep 2015 14:23:34 +1000 Subject: [PATCH] Remove unnecessary json.loads --- lib/ansible/modules/cloud/amazon/iam_policy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/amazon/iam_policy.py b/lib/ansible/modules/cloud/amazon/iam_policy.py index 9213d1585b0..04fc8086939 100644 --- a/lib/ansible/modules/cloud/amazon/iam_policy.py +++ b/lib/ansible/modules/cloud/amazon/iam_policy.py @@ -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: