Fixed issue with influxdb, broken in recent commit today

This commit is contained in:
Torkel Ödegaard 2015-02-18 15:22:45 +01:00
parent 978b12b0dc
commit 0d165e67c9

View File

@ -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;