mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-30 20:31:21 +00:00
change lxc migration option to restart mode
since online migration does work at the moment, and with ha we already have the restart mode Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
a979c78da0
commit
18fdf0bcf6
@ -5,8 +5,18 @@ Ext.define('PVE.window.Migrate', {
|
|||||||
|
|
||||||
migrate: function(target, online) {
|
migrate: function(target, online) {
|
||||||
var me = this;
|
var me = this;
|
||||||
|
var params = {
|
||||||
|
target: target
|
||||||
|
};
|
||||||
|
|
||||||
|
if (me.vmtype === 'qemu') {
|
||||||
|
params.online = online;
|
||||||
|
} else {
|
||||||
|
params.restart = online;
|
||||||
|
}
|
||||||
|
|
||||||
PVE.Utils.API2Request({
|
PVE.Utils.API2Request({
|
||||||
params: { target: target, online: online },
|
params: params,
|
||||||
url: '/nodes/' + me.nodename + '/' + me.vmtype + '/' + me.vmid + "/migrate",
|
url: '/nodes/' + me.nodename + '/' + me.vmtype + '/' + me.vmid + "/migrate",
|
||||||
waitMsgTarget: me,
|
waitMsgTarget: me,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
@ -69,7 +79,7 @@ Ext.define('PVE.window.Migrate', {
|
|||||||
uncheckedValue: 0,
|
uncheckedValue: 0,
|
||||||
defaultValue: 0,
|
defaultValue: 0,
|
||||||
checked: running,
|
checked: running,
|
||||||
fieldLabel: gettext('Online')
|
fieldLabel: me.vtype === 'qemu' ? gettext('Online') : gettext('Restart Mode')
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user