mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-04 20:32:45 +00:00
Fix dualstack without s3_url (#43510)
This commit is contained in:
committed by
Ryan Brown
parent
9896853d1f
commit
25218e6843
@@ -759,7 +759,7 @@ def main():
|
||||
if not s3_url and 'S3_URL' in os.environ:
|
||||
s3_url = os.environ['S3_URL']
|
||||
|
||||
if dualstack and 'amazonaws.com' not in s3_url:
|
||||
if dualstack and s3_url is not None and 'amazonaws.com' not in s3_url:
|
||||
module.fail_json(msg='dualstack only applies to AWS S3')
|
||||
|
||||
if dualstack and not module.botocore_at_least('1.4.45'):
|
||||
|
||||
Reference in New Issue
Block a user