From 2cd7d9bfeb460ddd62931f9bc65fdee7abb7287a Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Wed, 21 Dec 2022 15:10:13 -0800 Subject: [PATCH] switch instance name logic --- scripts/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/config.js b/scripts/config.js index 05f6138..5eacbbf 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -24,7 +24,7 @@ async function populateForm (node, type, vmid) { let config = await request(`/nodes/${node}/${type}/${vmid}/config`); console.log(config); - let name = type === "lxc" ? "hostname" : "name"; + let name = type === "qemu" ? "name" : "hostname"; addFormLine("name", "Name", {type: "text", value: config.data[name]}); addFormLine("resources", "Cores", {type: "number", value: config.data.cores, min: 1, max: 8192}, "Threads"); addFormLine("resources", "Memory", {type: "number", value: config.data.memory / 1024, min: 16}, "GiB");