[pve-devel] [PATCH] Fix qemu create wizard when iothread is set

Emmanuel Kasper e.kasper at proxmox.com
Wed Jun 17 14:25:12 CEST 2015


The variable to use to check the disk type is confid,
as set in line 16 with:
var confid = me.confid || (values.controller + values.deviceid);
---
 www/manager/qemu/HDEdit.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/manager/qemu/HDEdit.js b/www/manager/qemu/HDEdit.js
index e26cbe4..ffca0b0 100644
--- a/www/manager/qemu/HDEdit.js
+++ b/www/manager/qemu/HDEdit.js
@@ -39,7 +39,7 @@ Ext.define('PVE.qemu.HDInputPanel', {
 	    delete me.drive.discard;
 	}
 
-	if (values.iothread && me.confid.match(/^virtio\d+$/)) {
+	if (values.iothread && confid.match(/^virtio\d+$/)) {
 	    me.drive.iothread = 'on';
 	} else {
 	    delete me.drive.iothread;
-- 
2.1.4





More information about the pve-devel mailing list