fix error with empty boot order,

fix error with multiple item boot order
This commit is contained in:
Arthur Lu 2023-08-28 23:34:43 +00:00
parent 72d103edaf
commit ec26e7f6a3

View File

@ -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";