mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
send json string to api instead of dict
This commit is contained in:
parent
1e5ca511d6
commit
fdb8d11958
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ def _create_or_update_bucket(connection, module, location):
|
||||||
|
|
||||||
if current_policy is None or json.loads(current_policy) != compare_policy:
|
if current_policy is None or json.loads(current_policy) != compare_policy:
|
||||||
try:
|
try:
|
||||||
bucket.set_policy(load_policy)
|
bucket.set_policy(policy)
|
||||||
changed = True
|
changed = True
|
||||||
current_policy = bucket.get_policy()
|
current_policy = bucket.get_policy()
|
||||||
except S3ResponseError as e:
|
except S3ResponseError as e:
|
||||||
|
|
Loading…
Reference in a new issue