You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by oc...@apache.org on 2021/03/17 23:49:12 UTC
[trafficcontrol] branch 5.1.x updated: Le fix 5.1.x (#5651)
This is an automated email from the ASF dual-hosted git repository.
ocket8888 pushed a commit to branch 5.1.x
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
The following commit(s) were added to refs/heads/5.1.x by this push:
new 4cbce4f Le fix 5.1.x (#5651)
4cbce4f is described below
commit 4cbce4ff5249d85bbef9bf009ee004df1e7e9ed1
Author: mattjackson220 <33...@users.noreply.github.com>
AuthorDate: Wed Mar 17 17:48:59 2021 -0600
Le fix 5.1.x (#5651)
* fixed Lets Encrypt to not crash when no records to clean
* deleted too much of the line
---
traffic_ops/traffic_ops_golang/deliveryservice/letsencryptcert.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/traffic_ops/traffic_ops_golang/deliveryservice/letsencryptcert.go b/traffic_ops/traffic_ops_golang/deliveryservice/letsencryptcert.go
index 9f34f37..d447a8b 100644
--- a/traffic_ops/traffic_ops_golang/deliveryservice/letsencryptcert.go
+++ b/traffic_ops/traffic_ops_golang/deliveryservice/letsencryptcert.go
@@ -125,8 +125,8 @@ func (d *DNSProviderTrafficRouter) CleanUp(domain, token, keyAuth string) error
return errors.New("Determining rows affected when deleting dns txt record for fqdn '" + fqdn + "' record '" + value + "': " + err.Error())
}
if rows == 0 {
- log.Errorf("Zero rows affected when deleting dns txt record for fqdn '" + fqdn + "' record '" + value + "': " + err.Error())
- return errors.New("Zero rows affected when deleting dns txt record for fqdn '" + fqdn + "' record '" + value + "': " + err.Error())
+ log.Errorf("Zero rows affected when deleting dns txt record for fqdn '" + fqdn + "' record '" + value)
+ return errors.New("Zero rows affected when deleting dns txt record for fqdn '" + fqdn + "' record '" + value)
}
}