Commit dccdee01 authored by Gene's avatar Gene Committed by Joffrey F

aws ec2 preqreq check: match error to filter

filter to search for a subnet searches by both regionZone and VpcId,
but when no matches were found, the error message neglected to mention
that the VPC ID was part of the search criteria
Signed-off-by: default avatarF. Eugene Aumson <[email protected]>
parent 69717945
......@@ -503,7 +503,7 @@ func (d *Driver) checkPrereqs() error {
}
if len(subnets.Subnets) == 0 {
return fmt.Errorf("unable to find a subnet in the zone: %s", regionZone)
return fmt.Errorf("unable to find a subnet that is both in the zone %s and belonging to VPC ID %s", regionZone, d.VpcId)
}
d.SubnetId = *subnets.Subnets[0].SubnetId
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment