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
No known key found for this signature in database
GPG Key ID: A519480096146526
1 changed files with 1 additions and 1 deletions

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
}