mirror of https://github.com/kubernetes/kops.git
Merge pull request #1439 from justinsb/fix_1428
Don't delete NatGateways if there were none found
This commit is contained in:
commit
9819ad2af0
|
@ -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