Allow vpc_subnet_id to remain unspecified (see bc0c169)

This commit is contained in:
Bret Martin 2015-03-06 14:59:27 -05:00
parent 76702b48f7
commit f16d8d9afb

View file

@ -785,6 +785,8 @@ def create_instances(module, ec2, vpc, override_count=None):
if vpc_subnet_id: if vpc_subnet_id:
vpc_id = vpc.get_all_subnets(subnet_ids=[vpc_subnet_id])[0].vpc_id vpc_id = vpc.get_all_subnets(subnet_ids=[vpc_subnet_id])[0].vpc_id
else:
vpc_id = None
try: try:
# Here we try to lookup the group id from the security group name - if group is set. # Here we try to lookup the group id from the security group name - if group is set.