formulas: {
setMigrationMode: function(get) {
- if (get('running')){
+ if (get('running')) {
if (get('vmtype') === 'qemu') {
return gettext('Online');
} else {
});
me.checkMigratePreconditions();
me.lookup('formPanel').isValid();
-
},
- onTargetChange: function (nodeSelector) {
+ onTargetChange: function(nodeSelector) {
//Always display the storages of the currently seleceted migration target
this.lookup('pveDiskStorageSelector').setNodename(nodeSelector.value);
this.checkMigratePreconditions();
view.close();
},
});
-
},
checkMigratePreconditions: function(resetMigrationPossible) {
me.lookup('pveNodeSelector').allowedNodes = vm.get('migration.allowedNodes');
me.lookup('formPanel').isValid();
-
},
checkQemuPreconditions: function(resetMigrationPossible) {
if (migrateStats.local_resources.length) {
migration.hasLocalResources = true;
- if(!migration.overwriteLocalResourceCheck || vm.get('running')){
+ if (!migration.overwriteLocalResourceCheck || vm.get('running')) {
migration.possible = false;
migration.preconditions.push({
text: Ext.String.format('Can\'t migrate VM with local resources: {0}',
}
if (migrateStats.local_disks.length) {
-
- migrateStats.local_disks.forEach(function (disk) {
+ migrateStats.local_disks.forEach(function(disk) {
if (disk.cdrom && disk.cdrom === 1) {
if (disk.volid.includes('vm-'+vm.get('vmid')+'-cloudinit')) {
if (migrateStats.running) {
});
}
});
-
}
vm.set('migration', migration);
-
},
});
},
value: '{migration.overwriteLocalResourceCheck}',
},
listeners: {
- change: {fn: 'checkMigratePreconditions', extraArg: true},
+ change: { fn: 'checkMigratePreconditions', extraArg: true },
},
}],
},