Merge pull request #1439 from justinsb/fix_1428

Don't delete NatGateways if there were none found
This commit is contained in:
Chris Love 2017-01-10 17:44:34 -07:00 committed by GitHub
commit 9819ad2af0
1 changed files with 1 additions and 1 deletions

View File

@ -1468,7 +1468,7 @@ func FindNatGateways(cloud fi.Cloud, routeTableIds sets.String) ([]*ResourceTrac
var trackers []*ResourceTracker
{
if len(natGatewayIds) != 0 {
request := &ec2.DescribeNatGatewaysInput{}
for natGatewayId := range natGatewayIds {
request.NatGatewayIds = append(request.NatGatewayIds, aws.String(natGatewayId))