mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-15 06:55:46 +00:00
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) {
|
onGetValues: function(values) {
|
||||||
let me = this;
|
let me = this;
|
||||||
if (!me.confid) {
|
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()]) {
|
if (!me.vmconfig['hostpci' + i.toString()]) {
|
||||||
me.confid = 'hostpci' + i.toString();
|
me.confid = 'hostpci' + i.toString();
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user