diff --git a/src/app/components/settings.js b/src/app/components/settings.js index 158d255a635..5530d34f8fa 100644 --- a/src/app/components/settings.js +++ b/src/app/components/settings.js @@ -46,11 +46,6 @@ function (_) { // return datasource; // }; // - // var parseMultipleHosts = function(datasource) { - // datasource.urls = _.map(datasource.url.split(","), function (url) { return url.trim(); }); - // return datasource; - // }; - // // _.each(settings.datasources, function(datasource, key) { // datasource.name = key; // if (datasource.url) { parseBasicAuth(datasource); } diff --git a/src/test/specs/influxdb-datasource-specs.js b/src/test/specs/influxdb-datasource-specs.js index 028423ac1f4..335ca52d81c 100644 --- a/src/test/specs/influxdb-datasource-specs.js +++ b/src/test/specs/influxdb-datasource-specs.js @@ -11,7 +11,7 @@ define([ beforeEach(ctx.providePhase(['templateSrv'])); beforeEach(ctx.createService('InfluxDatasource')); beforeEach(function() { - ctx.ds = new ctx.service({ urls: [''], user: 'test', password: 'mupp' }); + ctx.ds = new ctx.service({ url: '', user: 'test', password: 'mupp' }); }); describe('When querying influxdb with one target using query editor target spec', function() {