You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by zr...@apache.org on 2022/06/02 14:07:04 UTC
[trafficcontrol] branch master updated: Fix addHealth test (#6878)
This is an automated email from the ASF dual-hosted git repository.
zrhoffman 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 bee495b98b Fix addHealth test (#6878)
bee495b98b is described below
commit bee495b98b3ef809ce6bedf1d425cd8f616e5f9f
Author: Srijeet Chatterjee <30...@users.noreply.github.com>
AuthorDate: Thu Jun 2 08:06:57 2022 -0600
Fix addHealth test (#6878)
---
traffic_ops/traffic_ops_golang/deliveryservice/health.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/traffic_ops/traffic_ops_golang/deliveryservice/health.go b/traffic_ops/traffic_ops_golang/deliveryservice/health.go
index 73c235519d..24cecee080 100644
--- a/traffic_ops/traffic_ops_golang/deliveryservice/health.go
+++ b/traffic_ops/traffic_ops_golang/deliveryservice/health.go
@@ -124,7 +124,6 @@ func addHealth(ds tc.DeliveryServiceName, data map[tc.CacheGroupName]tc.HealthDa
var ok bool
var topology string
var cacheGroupNameMap = make(map[string]bool)
- var skip bool
if deliveryService, ok = crConfig.DeliveryServices[string(ds)]; !ok {
return map[tc.CacheGroupName]tc.HealthDataCacheGroup{}, 0, 0, errors.New("delivery service not found in CRConfig")
@@ -142,6 +141,7 @@ func addHealth(ds tc.DeliveryServiceName, data map[tc.CacheGroupName]tc.HealthDa
}
}
for cacheName, avail := range crStates.Caches {
+ var skip bool
cache, ok := crConfig.ContentServers[string(cacheName)]
if !ok {
continue // TODO warn?