change net and hostpci arguments,

fix bug in ct-templates
This commit is contained in:
2025-04-22 23:48:45 +00:00
parent f34c13827b
commit 67fd748487
4 changed files with 30 additions and 73 deletions
+6 -6
View File
@@ -73,10 +73,10 @@ router.get("/vm-isos", async (req, res) => {
// get user iso config
const userIsoConfig = config.useriso;
// get all isos
const content = await global.pve.requestPVE(`/nodes/${userIsoConfig.node}/storage/${userIsoConfig.storage}/content?content=iso`, "GET", { token: true })
const content = await global.pve.requestPVE(`/nodes/${userIsoConfig.node}/storage/${userIsoConfig.storage}/content?content=iso`, "GET", { token: true });
if (content.status !== 200) {
res.status(content.status).send({error: content.statusText})
return
res.status(content.status).send({ error: content.statusText });
return;
}
const isos = content.data.data;
const userIsos = [];
@@ -103,10 +103,10 @@ router.get("/ct-templates", async (req, res) => {
// get user iso config
const userIsoConfig = config.useriso;
// get all isos
const content = await global.pve.requestPVE(`/nodes/${userIsoConfig.node}/storage/${userIsoConfig.storage}/content?content=iso`, "GET", { token: true })
const content = await global.pve.requestPVE(`/nodes/${userIsoConfig.node}/storage/${userIsoConfig.storage}/content?content=vztmpl`, "GET", { token: true });
if (content.status !== 200) {
res.status(content.status).send({error: content.statusText})
return
res.status(content.status).send({ error: content.statusText });
return;
}
const isos = content.data.data;
const userIsos = [];