mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
[aws modules] use ec2_url in a few places it was missing (#33954)
This commit is contained in:
parent
d59bba4652
commit
82cd5ffa1d
3 changed files with 3 additions and 3 deletions
|
@ -182,7 +182,7 @@ def main():
|
|||
|
||||
connection = boto3_conn(module,
|
||||
resource='ec2', conn_type='client',
|
||||
region=region, **aws_connect_params)
|
||||
region=region, endpoint=ec2_url, **aws_connect_params)
|
||||
|
||||
state = module.params.get("state")
|
||||
|
||||
|
|
|
@ -123,7 +123,7 @@ def main():
|
|||
|
||||
connection = boto3_conn(module,
|
||||
resource='ec2', conn_type='client',
|
||||
region=region, **aws_connect_params)
|
||||
region=region, endpoint=ec2_url, **aws_connect_params)
|
||||
|
||||
placement_groups = get_placement_groups_details(connection, module)
|
||||
module.exit_json(changed=False, placement_groups=placement_groups)
|
||||
|
|
|
@ -273,7 +273,7 @@ def main():
|
|||
changed = False
|
||||
|
||||
region, ec2_url, aws_connect_params = get_aws_connection_info(module, boto3=True)
|
||||
connection = boto3_conn(module, conn_type='client', resource='ec2', region=region, **aws_connect_params)
|
||||
connection = boto3_conn(module, conn_type='client', resource='ec2', region=region, endpoint=ec2_url, **aws_connect_params)
|
||||
|
||||
if dns_hostnames and not dns_support:
|
||||
module.fail_json(msg='In order to enable DNS Hostnames you must also enable DNS support')
|
||||
|
|
Loading…
Reference in a new issue