Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
fix Route53HealthCheck loop (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
svenwltr authored May 25, 2020
1 parent 3f0d5aa commit b61e6d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/route53-health-checks.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package resources

import (
"fmt"

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/route53"
"github.com/rebuy-de/aws-nuke/pkg/types"
"github.com/aws/aws-sdk-go/aws"
)

func init() {
Expand All @@ -17,7 +18,6 @@ func ListRoute53HealthChecks(sess *session.Session) ([]Resource, error) {
params := &route53.ListHealthChecksInput{}
resources := make([]Resource, 0)


for {
resp, err := svc.ListHealthChecks(params)
if err != nil {
Expand All @@ -30,7 +30,7 @@ func ListRoute53HealthChecks(sess *session.Session) ([]Resource, error) {
id: check.Id,
})
}
if aws.BoolValue(resp.IsTruncated) != false {
if aws.BoolValue(resp.IsTruncated) == false {
break
}
params.Marker = resp.NextMarker
Expand Down

0 comments on commit b61e6d5

Please sign in to comment.