From ac64f3c8cf295c72ffbb6eae83be8fa3a9690f8d Mon Sep 17 00:00:00 2001 From: evanccopengeo Date: Tue, 15 Apr 2014 18:16:34 -0400 Subject: [PATCH] cleaning up the code a bit more --- library/cloud/ec2 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/library/cloud/ec2 b/library/cloud/ec2 index d09e799359a..5935b7dc578 100644 --- a/library/cloud/ec2 +++ b/library/cloud/ec2 @@ -820,15 +820,13 @@ def create_instances(module, ec2, override_count=None): private_ip_address=private_ip, groups=group_id, associate_public_ip_address=assign_public_ip) - interfaces = boto.ec2.networkinterface.NetworkInterfaceCollection(interface) - params['network_interfaces'] = interfaces else: interface = boto.ec2.networkinterface.NetworkInterfaceSpecification( subnet_id=vpc_subnet_id, groups=group_id, associate_public_ip_address=assign_public_ip) - interfaces = boto.ec2.networkinterface.NetworkInterfaceCollection(interface) - params['network_interfaces'] = interfaces + interfaces = boto.ec2.networkinterface.NetworkInterfaceCollection(interface) + params['network_interfaces'] = interfaces else: params['subnet_id'] = vpc_subnet_id if vpc_subnet_id: