Fixed migration issues.

This commit is contained in:
Alexander Zobnin
2016-03-29 13:50:05 +03:00
parent 3f028c7e2d
commit 7f75abb2d3
3 changed files with 23 additions and 36 deletions

View File

@@ -111,7 +111,8 @@ export class ZabbixAPIDatasource {
var promises = _.map(options.targets, function(target) {
if (target.mode !== 1) {
//console.log(migrations.isGrafana2target(target), target);
// Migrate old targets
target = migrations.migrate(target);
// Don't request undefined and hidden targets