Explorar el Código

stupid stupid stupid me

bergquist hace 9 años
padre
commit
29b60329cc
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      pkg/tsdb/graphite/graphite.go

+ 1 - 1
pkg/tsdb/graphite/graphite.go

@@ -45,7 +45,7 @@ func (e *GraphiteExecutor) Execute(queries tsdb.QuerySlice, context *tsdb.QueryC
 	client := http.Client{Timeout: time.Duration(10 * time.Second)}
 	client := http.Client{Timeout: time.Duration(10 * time.Second)}
 	req, _ := http.NewRequest(http.MethodPost, e.Url+"/render?", strings.NewReader(params.Encode()))
 	req, _ := http.NewRequest(http.MethodPost, e.Url+"/render?", strings.NewReader(params.Encode()))
 	if e.BasicAuth {
 	if e.BasicAuth {
-		req.SetBasicAuth("carl", "carl")
+		req.SetBasicAuth(e.BasicAuthPassword, e.BasicAuthPassword)
 	}
 	}
 
 
 	res, err := client.Do(req)
 	res, err := client.Do(req)