check instance GET

This commit is contained in:
Arthur Lu 2022-12-11 14:54:50 -08:00
parent e6c1c02358
commit 6f32ae83cc

View File

@ -17,5 +17,9 @@ async function init () {
let newNode = document.createElement("node-card"); let newNode = document.createElement("node-card");
newNode.data = nodes.data[i]; newNode.data = nodes.data[i];
nodeContainer.append(newNode); nodeContainer.append(newNode);
let qemu = await request(`/nodes/${nodes.data[i].node}/qemu`, "GET", null);
let lxc = await request(`/nodes/${nodes.data[i].node}/lxc`, "GET", null);
console.log(`${nodes.data[i].node} quemu: ${qemu}`);
console.log(`${nodes.data[i].node} lxc: ${lxc}`);
} }
} }