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 8a930228c6
commit 85dd99000d

View File

@ -524,7 +524,7 @@ function populateDevices() {
});
let ordered_keys = getOrdered(devices);
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);
});
}