From ec26e7f6a3cb552c575e6e7be92c529e9f428da6 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Mon, 28 Aug 2023 23:34:43 +0000 Subject: [PATCH] fix error with empty boot order, fix error with multiple item boot order --- src/routes/cluster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/cluster.js b/src/routes/cluster.js index 70b0719..aac6a77 100644 --- a/src/routes/cluster.js +++ b/src/routes/cluster.js @@ -112,7 +112,7 @@ router.post(`${basePath}/resources`, async (req, res) => { } else if (params.type === "qemu") { action.cpu = params.proctype; - action.boot = `order=${params.boot.toString().replace(",", ";")}`; + action.boot = `order=${params.boot.toString().replaceAll(",", ";")};`; } action = JSON.stringify(action); const method = params.type === "qemu" ? "POST" : "PUT";