You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by da...@apache.org on 2018/06/28 14:59:21 UTC
[trafficcontrol] branch master updated: Fix TO DS error ID to print
correctly
This is an automated email from the ASF dual-hosted git repository.
dangogh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
The following commit(s) were added to refs/heads/master by this push:
new 99d9bab Fix TO DS error ID to print correctly
99d9bab is described below
commit 99d9bab845ac3747e603f55455a832ec28174c58
Author: Robert Butts <ro...@apache.org>
AuthorDate: Thu Jun 28 08:39:02 2018 -0600
Fix TO DS error ID to print correctly
---
traffic_ops/traffic_ops_golang/deliveryservice/deliveryservicesv13.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/traffic_ops/traffic_ops_golang/deliveryservice/deliveryservicesv13.go b/traffic_ops/traffic_ops_golang/deliveryservice/deliveryservicesv13.go
index 65b608a..0d7dc36 100644
--- a/traffic_ops/traffic_ops_golang/deliveryservice/deliveryservicesv13.go
+++ b/traffic_ops/traffic_ops_golang/deliveryservice/deliveryservicesv13.go
@@ -534,11 +534,11 @@ func (ds *TODeliveryServiceV13) Delete(db *sqlx.DB, user auth.CurrentUser) (erro
}
xmlID, ok, err := ds.V12().GetXMLID(tx)
if err != nil {
- log.Errorln("TODeliveryServiceV13.Delete ID '" + string(*ds.ID) + "' loading XML ID: " + err.Error())
+ log.Errorln("TODeliveryServiceV13.Delete ID '" + strconv.Itoa(*ds.ID) + "' loading XML ID: " + err.Error())
return tc.DBError, tc.SystemError
}
if !ok {
- log.Errorln("TODeliveryServiceV13.Delete ID '" + string(*ds.ID) + "' had no delivery service!")
+ log.Errorln("TODeliveryServiceV13.Delete ID '" + strconv.Itoa(*ds.ID) + "' had no delivery service!")
return tc.DBError, tc.DataMissingError
}
ds.XMLID = &xmlID