summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwimnat <wimnat@gmail.com>2015-09-14 14:23:34 +1000
committerwimnat <wimnat@gmail.com>2015-09-14 14:23:34 +1000
commit8e9c85bed23eea907c7ed9c0f718b8a9088c0825 (patch)
tree4d49970fbf0656f72a41c58f40135db4c58bbe00
parent813053c51c8b778649a3b2c164847a95a1ac9219 (diff)
downloadansible-modules-core-8e9c85bed23eea907c7ed9c0f718b8a9088c0825.tar.gz
Remove unnecessary json.loads
-rw-r--r--cloud/amazon/iam_policy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloud/amazon/iam_policy.py b/cloud/amazon/iam_policy.py
index 9213d158..04fc8086 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: