Make Egress test a prefix test

Should be equivalent, but a little more correct.
This commit is contained in:
Justin Santa Barbara 2018-03-12 01:33:17 -04:00
parent 842b42dc7b
commit 785cc81b94
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ func (b *NetworkModelBuilder) Build(c *fi.ModelBuilderContext) error {
var ngw *awstasks.NatGateway
if b.Cluster.Spec.Subnets[i].Egress != "" {
if strings.Contains(b.Cluster.Spec.Subnets[i].Egress, "nat-") {
if strings.HasPrefix(b.Cluster.Spec.Subnets[i].Egress, "nat-") {
ngw = &awstasks.NatGateway{
Name: s(zone + "." + b.ClusterName()),