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