Skip to content

Commit

Permalink
Add const to avoid Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardocaylent committed Mar 5, 2024
1 parent 0308cc2 commit 3395eba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion provider/aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const (
providerSpecificMultiValueAnswer = "aws/multi-value-answer"
providerSpecificHealthCheckID = "aws/health-check-id"
sameZoneAlias = "same-zone"
EmptyRecordType = "EmptyRecordType"
)

// see: https://docs.aws.amazon.com/general/latest/gr/elb.html
Expand Down Expand Up @@ -1002,7 +1003,7 @@ func changesByZone(zones map[string]*route53.HostedZone, changeSet Route53Change
if c.ResourceRecordSet.Type != nil && *c.ResourceRecordSet.Type != "" {
recordType = *c.ResourceRecordSet.Type
} else {
recordType = "EmptyRecordType"
recordType = EmptyRecordType
}
log.Debugf("Creating key for %s to zone %s with type %s", hostname, aws.StringValue(z.Id), recordType)
key := fmt.Sprintf("%s_%s", hostname, recordType)
Expand Down

0 comments on commit 3395eba

Please sign in to comment.