Explorar o código

Fixed issue with influxdb, broken in recent commit today

Torkel Ödegaard %!s(int64=11) %!d(string=hai) anos
pai
achega
0d165e67c9
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/app/features/influxdb/datasource.js

+ 3 - 1
src/app/features/influxdb/datasource.js

@@ -16,7 +16,9 @@ function (angular, _, kbn, InfluxSeries, InfluxQueryBuilder) {
 
 
     function InfluxDatasource(datasource) {
     function InfluxDatasource(datasource) {
       this.type = 'influxdb';
       this.type = 'influxdb';
-      this.urls = datasource.urls;
+      this.urls = _.map(datasource.url.split(','), function(url) {
+        return url.trim();
+      });
       this.username = datasource.username;
       this.username = datasource.username;
       this.password = datasource.password;
       this.password = datasource.password;
       this.name = datasource.name;
       this.name = datasource.name;