1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

[aws] fix excepted/expected misspelling

This commit is contained in:
Ryan S. Brown 2018-04-25 12:48:05 -04:00
parent db88cb8d8f
commit d13eccb7bc

View file

@ -353,7 +353,7 @@ def wait_policy_is_applied(module, s3_client, bucket_name, expected_policy, shou
else: else:
return current_policy return current_policy
if should_fail: if should_fail:
module.fail_json(msg="Bucket policy failed to apply in the excepted time") module.fail_json(msg="Bucket policy failed to apply in the expected time")
else: else:
return None return None
@ -369,7 +369,7 @@ def wait_payer_is_applied(module, s3_client, bucket_name, expected_payer, should
else: else:
return requester_pays_status return requester_pays_status
if should_fail: if should_fail:
module.fail_json(msg="Bucket request payment failed to apply in the excepted time") module.fail_json(msg="Bucket request payment failed to apply in the expected time")
else: else:
return None return None
@ -384,7 +384,7 @@ def wait_versioning_is_applied(module, s3_client, bucket_name, required_versioni
time.sleep(5) time.sleep(5)
else: else:
return versioning_status return versioning_status
module.fail_json(msg="Bucket versioning failed to apply in the excepted time") module.fail_json(msg="Bucket versioning failed to apply in the expected time")
def wait_tags_are_applied(module, s3_client, bucket_name, expected_tags_dict): def wait_tags_are_applied(module, s3_client, bucket_name, expected_tags_dict):
@ -397,7 +397,7 @@ def wait_tags_are_applied(module, s3_client, bucket_name, expected_tags_dict):
time.sleep(5) time.sleep(5)
else: else:
return return
module.fail_json(msg="Bucket tags failed to apply in the excepted time") module.fail_json(msg="Bucket tags failed to apply in the expected time")
def get_current_bucket_tags_dict(s3_client, bucket_name): def get_current_bucket_tags_dict(s3_client, bucket_name):