From eb88a532231923cf099d4c3625773b7524675f29 Mon Sep 17 00:00:00 2001 From: Mike Kobyakov Date: Fri, 10 Jul 2015 16:09:08 -0700 Subject: [PATCH] fix for a change in datasource object --- public/app/plugins/datasource/opentsdb/datasource.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/public/app/plugins/datasource/opentsdb/datasource.js b/public/app/plugins/datasource/opentsdb/datasource.js index 9ac32802d46..2a5ca425ea3 100644 --- a/public/app/plugins/datasource/opentsdb/datasource.js +++ b/public/app/plugins/datasource/opentsdb/datasource.js @@ -173,11 +173,7 @@ function (angular, _, kbn) { }; OpenTSDBDatasource.prototype.performAggregatorsQuery = function() { - var options = { - method: 'GET', - url: this.url + '/api/aggregators' - }; - return $http(options).then(function(result) { + return this._get('/api/aggregators', {}).then(function(result) { if (result.data instanceof Array) { return result.data.sort(); } else {