Matt Bolt 6 лет назад
Родитель
Сommit
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