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:
Dominik Csapak 2022-03-11 08:45:45 +01:00 committed by Thomas Lamprecht
parent c8e171a8bd
commit dd8b3252af

View File

@ -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;