Jelajahi Sumber

Merge pull request #154 from jmhobbs/master

Fix variable name for graphite basic auth.
Torkel Ödegaard 12 tahun lalu
induk
melakukan
6d59d21770
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/app/services/graphite/graphiteDatasource.js

+ 1 - 1
src/app/services/graphite/graphiteDatasource.js

@@ -129,7 +129,7 @@ function (angular, _, $, config, kbn, moment) {
       if (this.basicAuth) {
       if (this.basicAuth) {
         options.withCredentials = true;
         options.withCredentials = true;
         options.headers = options.headers || {};
         options.headers = options.headers || {};
-        options.headers.Authorization = 'Basic ' + config.graphiteBasicAuth;
+        options.headers.Authorization = 'Basic ' + this.basicAuth;
       }
       }
 
 
       options.url = this.url + options.url;
       options.url = this.url + options.url;