mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
cleaning up the code a bit more
This commit is contained in:
@@ -820,15 +820,13 @@ def create_instances(module, ec2, override_count=None):
|
|||||||
private_ip_address=private_ip,
|
private_ip_address=private_ip,
|
||||||
groups=group_id,
|
groups=group_id,
|
||||||
associate_public_ip_address=assign_public_ip)
|
associate_public_ip_address=assign_public_ip)
|
||||||
interfaces = boto.ec2.networkinterface.NetworkInterfaceCollection(interface)
|
|
||||||
params['network_interfaces'] = interfaces
|
|
||||||
else:
|
else:
|
||||||
interface = boto.ec2.networkinterface.NetworkInterfaceSpecification(
|
interface = boto.ec2.networkinterface.NetworkInterfaceSpecification(
|
||||||
subnet_id=vpc_subnet_id,
|
subnet_id=vpc_subnet_id,
|
||||||
groups=group_id,
|
groups=group_id,
|
||||||
associate_public_ip_address=assign_public_ip)
|
associate_public_ip_address=assign_public_ip)
|
||||||
interfaces = boto.ec2.networkinterface.NetworkInterfaceCollection(interface)
|
interfaces = boto.ec2.networkinterface.NetworkInterfaceCollection(interface)
|
||||||
params['network_interfaces'] = interfaces
|
params['network_interfaces'] = interfaces
|
||||||
else:
|
else:
|
||||||
params['subnet_id'] = vpc_subnet_id
|
params['subnet_id'] = vpc_subnet_id
|
||||||
if vpc_subnet_id:
|
if vpc_subnet_id:
|
||||||
|
|||||||
Reference in New Issue
Block a user