Matt Bolt пре 6 година
родитељ
комит
6e96fb623d
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      costmodel/router.go

+ 2 - 2
costmodel/router.go

@@ -341,7 +341,7 @@ func (a *Accesses) AggregateCostModel(w http.ResponseWriter, r *http.Request, ps
 	}
 	klog.Infof("REMOTE ENABLED: %t", remoteEnabled)
 
-	// Use Thanos Client if it exists and remote != false
+	// Use Thanos Client if it exists (enabled) and remote flag set
 	var pClient prometheusClient.Client
 	if remote != "false" && a.ThanosClient != nil {
 		pClient = a.ThanosClient
@@ -421,7 +421,7 @@ func (a *Accesses) CostDataModelRange(w http.ResponseWriter, r *http.Request, ps
 		remoteEnabled = true
 	}
 
-	// Use Thanos Client if it exists and remote != false
+	// Use Thanos Client if it exists (enabled) and remote flag set
 	var pClient prometheusClient.Client
 	if remote != "false" && a.ThanosClient != nil {
 		pClient = a.ThanosClient