fix error with empty boot order,
fix error with multiple item boot order
This commit is contained in:
parent
33660b9f8c
commit
abeb307de1
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user