From fdb8d119581c22b7bd966080f2ca080c298822e2 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 28 Jul 2016 15:19:14 -0400 Subject: [PATCH] send json string to api instead of dict --- lib/ansible/modules/extras/cloud/amazon/s3_bucket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/cloud/amazon/s3_bucket.py b/lib/ansible/modules/extras/cloud/amazon/s3_bucket.py index 67b5b134ee..bbb35abee8 100644 --- a/lib/ansible/modules/extras/cloud/amazon/s3_bucket.py +++ b/lib/ansible/modules/extras/cloud/amazon/s3_bucket.py @@ -207,7 +207,7 @@ def _create_or_update_bucket(connection, module, location): if current_policy is None or json.loads(current_policy) != compare_policy: try: - bucket.set_policy(load_policy) + bucket.set_policy(policy) changed = True current_policy = bucket.get_policy() except S3ResponseError as e: