From 0afcb695c4969d9ef82494ac5ea7eda2dc38dd83 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 17 Apr 2015 16:21:28 +0200 Subject: [PATCH] replace s/openvz/lxc/ --- pveui.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pveui.js b/pveui.js index 61f701b..b4bae62 100644 --- a/pveui.js +++ b/pveui.js @@ -147,7 +147,7 @@ pve_show_msg: function(klass, msg, permanant) { }, pve_detect_migrated_vm: function() { - if (!(UI.consoletype === 'kvm' || UI.consoletype === 'openvz')) { + if (!(UI.consoletype === 'kvm' || UI.consoletype === 'lxc')) { return; } @@ -158,7 +158,7 @@ pve_detect_migrated_vm: function() { success: function(result) { var list = result.data; list.every(function(item) { - if ((item.type === 'qemu' || item.type === 'openvz') && + if ((item.type === 'qemu' || item.type === 'lxc') && (item.vmid == UI.vmid)) { var url = "?" + UI.urlEncode({ console: UI.consoletype, @@ -181,8 +181,8 @@ pve_vm_command: function(cmd, params, reload) { if (UI.consoletype === 'kvm') { baseUrl = '/nodes/' + UI.nodename + '/qemu/' + UI.vmid; - } else if (UI.consoletype === 'openvz') { - baseUrl = '/nodes/' + UI.nodename + '/openvz/' + UI.vmid; + } else if (UI.consoletype === 'lxc') { + baseUrl = '/nodes/' + UI.nodename + '/lxc/' + UI.vmid; } else { throw "unknown VM type"; } @@ -315,17 +315,17 @@ pve_start: function(callback) { { text: gettext('Start'), handler: UI.pveCmdStart, - enable: { kvm: 1, openvz: 1 } + enable: { kvm: 1, lxc: 1 } }, { text: gettext('Shutdown'), handler: UI.pveCmdShutdown, - enable: { kvm: 1, openvz: 1 } + enable: { kvm: 1, lxc: 1 } }, { text: gettext('Stop'), handler: UI.pveCmdStop, - enable: { kvm: 1, openvz: 1 } + enable: { kvm: 1, lxc: 1 } }, { text: gettext('Reset'), @@ -471,8 +471,8 @@ pve_start: function(callback) { if (UI.vmname) { title += " ('" + UI.vmname + "')"; } - } else if (UI.consoletype === 'openvz') { - var baseUrl = '/nodes/' + UI.nodename + '/openvz/' + UI.vmid; + } else if (UI.consoletype === 'lxc') { + var baseUrl = '/nodes/' + UI.nodename + '/lxc/' + UI.vmid; url = baseUrl + '/vncproxy'; wsurl = baseUrl + '/vncwebsocket'; title = "CT " + UI.vmid; -- 2.39.2