1
0
Fork 0
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:
Matthew Staebler 2017-12-15 12:06:24 -05:00 committed by Sloane Hertel
parent d59bba4652
commit 82cd5ffa1d
3 changed files with 3 additions and 3 deletions

View file

@ -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")

View file

@ -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)

View file

@ -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')