mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Small fix to PR 2119
This commit is contained in:
parent
ca67b49d67
commit
97f54ac385
@ -91,11 +91,10 @@ function (angular, _, kbn) {
|
||||
};
|
||||
|
||||
OpenTSDBDatasource.prototype.performMetricKeyValueLookup = function(metric, key) {
|
||||
if(metric === "") {
|
||||
throw "Metric not set.";
|
||||
} else if(key === "") {
|
||||
throw "Key not set.";
|
||||
if(!metric || !key) {
|
||||
return $q.when([]);
|
||||
}
|
||||
|
||||
var m = metric + "{" + key + "=*}";
|
||||
var options = {
|
||||
method: 'GET',
|
||||
@ -104,6 +103,7 @@ function (angular, _, kbn) {
|
||||
m: m,
|
||||
}
|
||||
};
|
||||
|
||||
return backendSrv.datasourceRequest(options).then(function(result) {
|
||||
result = result.data.results;
|
||||
var tagvs = [];
|
||||
|
Loading…
Reference in New Issue
Block a user