* [pve-devel] [PATCH manager] ui: fix adding hostpci > 5
@ 2022-03-11 7:45 Dominik Csapak
2022-04-25 14:28 ` Dominik Csapak
2022-04-25 16:22 ` [pve-devel] applied: " Thomas Lamprecht
0 siblings, 2 replies; 3+ messages in thread
From: Dominik Csapak @ 2022-03-11 7:45 UTC (permalink / raw)
To: pve-devel
by using the limits from PVE.Utils
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
www/manager6/qemu/PCIEdit.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/www/manager6/qemu/PCIEdit.js b/www/manager6/qemu/PCIEdit.js
index a38b28ca..2f67aece 100644
--- a/www/manager6/qemu/PCIEdit.js
+++ b/www/manager6/qemu/PCIEdit.js
@@ -40,7 +40,7 @@ Ext.define('PVE.qemu.PCIInputPanel', {
onGetValues: function(values) {
let me = this;
if (!me.confid) {
- for (let i = 0; i < 5; i++) {
+ for (let i = 0; i < PVE.Utils.hardware_counts.hostpci; i++) {
if (!me.vmconfig['hostpci' + i.toString()]) {
me.confid = 'hostpci' + i.toString();
break;
--
2.30.2
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-04-25 16:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-11 7:45 [pve-devel] [PATCH manager] ui: fix adding hostpci > 5 Dominik Csapak
2022-04-25 14:28 ` Dominik Csapak
2022-04-25 16:22 ` [pve-devel] applied: " Thomas Lamprecht
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox