summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Coca <bcoca@ansible.com>2015-09-14 16:46:34 -0400
committerBrian Coca <bcoca@ansible.com>2015-09-14 16:46:34 -0400
commit8a7946b91d35a982b52139969d20d072c3d53317 (patch)
tree79f1f88710ee7eac07ff24fd64475a2913f73fde
parenta0997e89404e436cb893d9c5303dd55bb752598a (diff)
parent8e9c85bed23eea907c7ed9c0f718b8a9088c0825 (diff)
downloadansible-modules-core-8a7946b91d35a982b52139969d20d072c3d53317.tar.gz
Merge pull request #2064 from wimnat/feature/issue-2063
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: