diff --git a/src/app/features/influxdb/datasource.js b/src/app/features/influxdb/datasource.js index c867fb2a4a5..77863b73d62 100644 --- a/src/app/features/influxdb/datasource.js +++ b/src/app/features/influxdb/datasource.js @@ -16,7 +16,9 @@ function (angular, _, kbn, InfluxSeries, InfluxQueryBuilder) { function InfluxDatasource(datasource) { this.type = 'influxdb'; - this.urls = datasource.urls; + this.urls = _.map(datasource.url.split(','), function(url) { + return url.trim(); + }); this.username = datasource.username; this.password = datasource.password; this.name = datasource.name;