add implicit instance typing
This commit is contained in:
parent
52cb2a9a10
commit
0235760565
@ -18,9 +18,15 @@ async function init () {
|
||||
let nodeStatus = nodes.data[i].status;
|
||||
|
||||
let qemu = await request(`/nodes/${nodeName}/qemu`, "GET");
|
||||
qemu.data.forEach((item) => {item.node = {name: nodeName, status: nodeStatus}});
|
||||
qemu.data.forEach((item) => {
|
||||
item.node = {name: nodeName, status: nodeStatus};
|
||||
item.type = "qemu";
|
||||
});
|
||||
let lxc = await request(`/nodes/${nodeName}/lxc`, "GET");
|
||||
lxc.data.forEach((item) => {item.node = {name: nodeName, status: nodeStatus}});
|
||||
lxc.data.forEach((item) => {
|
||||
item.node = {name: nodeName, status: nodeStatus};
|
||||
item.type = "lxc";
|
||||
});
|
||||
instances = instances.concat(qemu.data, lxc.data);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user