ui: fix adding hostpci > 5
by using the limits from PVE.Utils Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
c8e171a8bd
commit
dd8b3252af
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user