[pve-devel] [PATCH manager v2] fix #1884: qemu vm: pending deletion of cdrom/dvd drive shows as hard disk in hardware tab

David Limbeck d.limbeck at proxmox.com
Fri Aug 24 11:05:52 CEST 2018


Signed-off-by: David Limbeck <d.limbeck at proxmox.com>
---
changes since v1:
    cleanup
    code simplification

www/manager6/qemu/HardwareView.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/www/manager6/qemu/HardwareView.js b/www/manager6/qemu/HardwareView.js
index a87a9df1..a1bccc3c 100644
--- a/www/manager6/qemu/HardwareView.js
+++ b/www/manager6/qemu/HardwareView.js
@@ -14,7 +14,10 @@ Ext.define('PVE.qemu.HardwareView', {
 	if (rowdef.tdCls) {
 	    metaData.tdCls = rowdef.tdCls;
 	    if (rowdef.tdCls == 'pve-itype-icon-storage') { 
-		var value = me.getObjectValue(key, '', true);
+		var value = me.getObjectValue(key, '', false);
+		if (value === '') {
+		    value = me.getObjectValue(key, '', true);
+		}
 		if (value.match(/vm-.*-cloudinit/)) {
 		    metaData.tdCls = 'pve-itype-icon-cloud';
 		    return rowdef.cloudheader;
-- 
2.11.0





More information about the pve-devel mailing list