mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fixup boto3_conn as commit 6ea772931f
broke commit 27398131cf
This commit is contained in:
parent
2db3f290ba
commit
06977d5cb1
1 changed files with 0 additions and 2 deletions
|
@ -47,8 +47,6 @@ class AnsibleAWSError(Exception):
|
||||||
|
|
||||||
def boto3_conn(module, conn_type=None, resource=None, region=None, endpoint=None, **params):
|
def boto3_conn(module, conn_type=None, resource=None, region=None, endpoint=None, **params):
|
||||||
profile = params.pop('profile_name', None)
|
profile = params.pop('profile_name', None)
|
||||||
params['aws_session_token'] = params.pop('security_token', None)
|
|
||||||
params['verify'] = params.pop('validate_certs', None)
|
|
||||||
|
|
||||||
if conn_type not in ['both', 'resource', 'client']:
|
if conn_type not in ['both', 'resource', 'client']:
|
||||||
module.fail_json(msg='There is an issue in the code of the module. You must specify either both, resource or client to the conn_type parameter in the boto3_conn function call')
|
module.fail_json(msg='There is an issue in the code of the module. You must specify either both, resource or client to the conn_type parameter in the boto3_conn function call')
|
||||||
|
|
Loading…
Reference in a new issue