cleanup comments
This commit is contained in:
parent
b0b4c68f15
commit
10d979e545
@ -63,7 +63,6 @@ router.post("/ticket", async (req, res) => {
|
||||
};
|
||||
|
||||
const domain = global.config.application.domain;
|
||||
// const userRealm = params.username.split("@").at(-1);
|
||||
const userObj = global.utils.getUserObjFromUsername(params.username);
|
||||
let backends = global.userManager.getBackendsByUser(userObj);
|
||||
if (backends == null) {
|
||||
|
@ -51,7 +51,7 @@ if (schemes.hash.enabled) {
|
||||
if (!auth) {
|
||||
return;
|
||||
}
|
||||
// get current cluster resources
|
||||
// get current cluster resources - do not use fabric here because fabric is not always updated to changes like up/down state changes
|
||||
const status = (await global.pve.requestPVE("/cluster/resources", "GET", { cookies: req.cookies })).data.data;
|
||||
// filter out just state information of resources that are needed
|
||||
const state = extractClusterState(status, resourceTypes);
|
||||
|
Loading…
x
Reference in New Issue
Block a user