mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Allow AWS endpoints and dualstack (#43497)
This commit is contained in:
parent
2e873be9b5
commit
4b3e5998bf
1 changed files with 1 additions and 1 deletions
|
@ -759,7 +759,7 @@ def main():
|
||||||
if not s3_url and 'S3_URL' in os.environ:
|
if not s3_url and 'S3_URL' in os.environ:
|
||||||
s3_url = os.environ['S3_URL']
|
s3_url = os.environ['S3_URL']
|
||||||
|
|
||||||
if dualstack and s3_url:
|
if dualstack and 'amazonaws.com' not in s3_url:
|
||||||
module.fail_json(msg='dualstack only applies to AWS S3')
|
module.fail_json(msg='dualstack only applies to AWS S3')
|
||||||
|
|
||||||
if dualstack and not module.botocore_at_least('1.4.45'):
|
if dualstack and not module.botocore_at_least('1.4.45'):
|
||||||
|
|
Loading…
Reference in a new issue