1
0
mirror of https://github.com/docker/docs.git synced 2026-11-05 00:14:17 +03:00

ec2: check subnet exists in vpc

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
Evan Hazlett
2015-02-27 15:31:48 -05:00
parent c99e4f8fe4
commit 19f5b0cb54

View File

@@ -250,7 +250,7 @@ func (d *Driver) Create() error {
}
for _, s := range subnets {
if s.AvailabilityZone == regionZone {
if s.AvailabilityZone == regionZone && s.VpcId == d.VpcId {
subnetId = s.SubnetId
break
}