From 34ecfe8a39ea49ff8045194c11ef485ab35bf16d Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Sun, 11 Dec 2022 14:54:50 -0800 Subject: [PATCH] check instance GET --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index 6e81649..2bc1b6b 100644 --- a/index.js +++ b/index.js @@ -17,5 +17,9 @@ async function init () { let newNode = document.createElement("node-card"); newNode.data = nodes.data[i]; 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}`); } } \ No newline at end of file