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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user