mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Explicitly set validate_certs=False as the boto default is True
Fixes #14089
This commit is contained in:
@@ -163,8 +163,7 @@ def get_aws_connection_info(module, boto3=False):
|
||||
boto_params = dict(aws_access_key_id=access_key,
|
||||
aws_secret_access_key=secret_key,
|
||||
aws_session_token=security_token)
|
||||
if validate_certs:
|
||||
boto_params['verify'] = validate_certs
|
||||
boto_params['verify'] = validate_certs
|
||||
|
||||
if profile_name:
|
||||
boto_params['profile_name'] = profile_name
|
||||
@@ -181,7 +180,7 @@ def get_aws_connection_info(module, boto3=False):
|
||||
module.fail_json("boto does not support profile_name before 2.24")
|
||||
boto_params['profile_name'] = profile_name
|
||||
|
||||
if validate_certs and HAS_LOOSE_VERSION and LooseVersion(boto.Version) >= LooseVersion("2.6.0"):
|
||||
if HAS_LOOSE_VERSION and LooseVersion(boto.Version) >= LooseVersion("2.6.0"):
|
||||
boto_params['validate_certs'] = validate_certs
|
||||
|
||||
for param, value in boto_params.items():
|
||||
|
||||
Reference in New Issue
Block a user