1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 15:47:14 +01:00

pkg/destroy/aws: Fix zone id in debug output

Before this commit, when the installer requested tags for the zone from the
AWS API and the request was throttled, the installer printed a message with
the string pointer value of the zone id:

    DEBUG sleeping before trying to resolve tags for zone %!s(*string=0xc420e7fdc8): Throttling: Rate exceeded

After this commit, the installer prints the string value:

    DEBUG sleeping before trying to resolve tags for zone /hostedzone/Z2J66YWY5ZGE1: Throttling: Rate exceeded

* pkg/destroy/aws/aws.go (r53ZonesToAWSObject): Dereference zone.Id when
printing it.
This commit is contained in:
Miciah Masters
2019-01-03 12:31:50 -05:00
committed by Miciah Dashiel Butler Masters
parent 713289e20b
commit 3eb37cc8fc

View File

@@ -1206,7 +1206,7 @@ func r53ZonesToAWSObjects(zones []*route53.HostedZone, r53Client *route53.Route5
})
if err != nil {
if request.IsErrorThrottle(err) {
logger.Debugf("sleeping before trying to resolve tags for zone %s: %v", zone.Id, err)
logger.Debugf("sleeping before trying to resolve tags for zone %s: %v", *zone.Id, err)
time.Sleep(time.Second)
continue
}