mirror of https://github.com/kubernetes/kops.git
Don't delete NatGateways if there were none found
Because an empty filter means "list all NatGateways". Thanks to @tsupertramp for finding. Fix #1428
This commit is contained in:
parent
37bcafea04
commit
cd3cff8b5b
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue