From 5077dca1346d5b41a5f526f2a3d126b6fc3c47be Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Tue, 17 Jan 2023 12:26:49 -0800 Subject: [PATCH] fix finding nodes in resources Signed-off-by: Arthur Lu --- scripts/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/index.js b/scripts/index.js index c32e699..3563b3b 100644 --- a/scripts/index.js +++ b/scripts/index.js @@ -32,7 +32,7 @@ async function populateInstances () { resources.data.forEach((element) => { if (element.type === "lxc" || element.type === "qemu") { let nodeName = element.node; - let nodeStatus = resources.find(iem => item.node === nodeName).status; + let nodeStatus = resources.data.find(iem => item.node === nodeName).status; element.node = {name: nodeName, status: nodeStatus}; instances.push(element); }