check instance GET
This commit is contained in:
parent
8d0880346e
commit
34ecfe8a39
4
index.js
4
index.js
@ -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}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user