fix config pci device population

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2023-06-02 23:15:26 +00:00
parent f6d51e742c
commit 2d0b8aada6

View File

@ -524,7 +524,7 @@ function populateDevices() {
}); });
let ordered_keys = getOrdered(devices); let ordered_keys = getOrdered(devices);
ordered_keys.forEach(async (element) => { ordered_keys.forEach(async (element) => {
let deviceData = await requestAPI(`/nodes/pci?node=${node}&type=${type}&vmid=${vmid}&hostpci=${element}`, "GET"); let deviceData = await requestAPI(`/instance/pci?node=${node}&type=${type}&vmid=${vmid}&hostpci=${element}`, "GET");
addDeviceLine("devices", prefix, element, devices[element], deviceData); addDeviceLine("devices", prefix, element, devices[element], deviceData);
}); });
} }