Skip to content

Commit

Permalink
Merge pull request #5 from mattermost/fix/remove-dot-in-target
Browse files Browse the repository at this point in the history
Remove dot in the end of blackbox targets
  • Loading branch information
stylianosrigas committed Jun 11, 2022
2 parents 856cd64 + f0d697a commit 428ffa7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ func getBlackBoxTargets(publicRecords, privateRecords []*route53.ResourceRecordS
for _, record := range publicRecords {
if record.SetIdentifier != nil {
if !isExcludedTarget(excludedTargets, *record.Name) && !strings.HasPrefix(*record.Name, "_") && !strings.Contains(*record.SetIdentifier, "[hibernating]") {
blackBoxTargets = append(blackBoxTargets, fmt.Sprintf("%s/api/v4/system/ping", *record.Name))
record := strings.TrimSuffix(*record.Name, ".")
blackBoxTargets = append(blackBoxTargets, fmt.Sprintf("%s/api/v4/system/ping", record))
}
}

Expand Down

0 comments on commit 428ffa7

Please sign in to comment.