fix error with empty boot order,
fix error with multiple item boot order
This commit is contained in:
parent
72d103edaf
commit
ec26e7f6a3
@ -112,7 +112,7 @@ router.post(`${basePath}/resources`, async (req, res) => {
|
|||||||
}
|
}
|
||||||
else if (params.type === "qemu") {
|
else if (params.type === "qemu") {
|
||||||
action.cpu = params.proctype;
|
action.cpu = params.proctype;
|
||||||
action.boot = `order=${params.boot.toString().replace(",", ";")}`;
|
action.boot = `order=${params.boot.toString().replaceAll(",", ";")};`;
|
||||||
}
|
}
|
||||||
action = JSON.stringify(action);
|
action = JSON.stringify(action);
|
||||||
const method = params.type === "qemu" ? "POST" : "PUT";
|
const method = params.type === "qemu" ? "POST" : "PUT";
|
||||||
|
Loading…
Reference in New Issue
Block a user