[pve-devel] [PATCH manager] do not send 'undefined' as romfile
Dominik Csapak
d.csapak at proxmox.com
Wed Dec 5 13:25:25 CET 2018
when adding a pcidevice, we added 'romfile=undefined' by accident
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/qemu/PCIEdit.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/www/manager6/qemu/PCIEdit.js b/www/manager6/qemu/PCIEdit.js
index 40a7d8c7..85d1f4ce 100644
--- a/www/manager6/qemu/PCIEdit.js
+++ b/www/manager6/qemu/PCIEdit.js
@@ -55,6 +55,10 @@ Ext.define('PVE.qemu.PCIInputPanel', {
values.rombar = 0;
}
+ if (!values.romfile) {
+ delete values.romfile;
+ }
+
ret[me.confid] = PVE.Parser.printPropertyString(values, 'host');
return ret;
},
--
2.11.0
More information about the pve-devel
mailing list