fix instance node data assignment

This commit is contained in:
Arthur Lu 2022-12-14 13:48:29 -08:00
parent a10a8a4ddc
commit 0a72233baa

View File

@ -19,11 +19,13 @@ async function init () {
let qemu = await request(`/nodes/${nodeName}/qemu`, "GET");
qemu.data.forEach((item) => {
item.node = {};
item.node.name = nodeName;
item.node.status = nodeStatus;
});
let lxc = await request(`/nodes/${nodeName}/lxc`, "GET");
lxc.data.forEach((item) => {
item.node = {};
item.node.name = nodeName;
item.node.status = nodeStatus;
});