[pve-devel] [PATCH manager 2/2] do not show current node in migration window

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Nov 17 15:00:40 CET 2016


As we cannot migrate to the source node do not show it in the
migration window's node selector.

Fixes #1049 partly

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 www/manager6/window/Migrate.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/www/manager6/window/Migrate.js b/www/manager6/window/Migrate.js
index c1cee7c..23e1e5b 100644
--- a/www/manager6/window/Migrate.js
+++ b/www/manager6/window/Migrate.js
@@ -60,6 +60,7 @@ Ext.define('PVE.window.Migrate', {
 		    name: 'target',
 		    fieldLabel: gettext('Target node'),
 		    allowBlank: false,
+		    disallowedNodes: [me.nodename],
 		    onlineValidator: true
 		},
 		{
-- 
2.1.4





More information about the pve-devel mailing list