Merge pull request #691 from jzelinskie/legacybuilders
check for VPC subnet ID before using builder VPC
This commit is contained in:
commit
e73f0a95ee
1 changed files with 8 additions and 6 deletions
|
@ -121,6 +121,8 @@ class EC2Executor(BuilderExecutor):
|
||||||
block_devices = boto.ec2.blockdevicemapping.BlockDeviceMapping()
|
block_devices = boto.ec2.blockdevicemapping.BlockDeviceMapping()
|
||||||
block_devices['/dev/xvda'] = ssd_root_ebs
|
block_devices['/dev/xvda'] = ssd_root_ebs
|
||||||
|
|
||||||
|
interfaces = None
|
||||||
|
if self.executor_config.get('EC2_VPC_SUBNET_ID', None) is not None:
|
||||||
interface = boto.ec2.networkinterface.NetworkInterfaceSpecification(
|
interface = boto.ec2.networkinterface.NetworkInterfaceSpecification(
|
||||||
subnet_id=self.executor_config['EC2_VPC_SUBNET_ID'],
|
subnet_id=self.executor_config['EC2_VPC_SUBNET_ID'],
|
||||||
groups=self.executor_config['EC2_SECURITY_GROUP_IDS'],
|
groups=self.executor_config['EC2_SECURITY_GROUP_IDS'],
|
||||||
|
|
Reference in a new issue