Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
arteck committed Jan 9, 2025
1 parent 36fea9e commit 753f738
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

1 change: 1 addition & 0 deletions eslint.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ module.exports = [
'no-unsafe-finally': 'warn',
'no-cond-assign': 'warn',
'no-func-assign': 'warn',
'no-useless-catch': 'warn',
'no-global-assign': 'warn',
'no-self-assign': 'warn',
'no-trailing-spaces': 'error',
Expand Down
5 changes: 0 additions & 5 deletions lib/proxmox.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,17 +238,12 @@ class ProxmoxUtils {
}

async ticket() {
//try {
const data = await this._getTicket();

this.adapter.log.debug(`Updating ticket to "${data.ticket}" and CSRF to "${data.CSRFPreventionToken}"`);

TICKET = `PVEAuthCookie=${data.ticket}`;
CSRF = data.CSRFPreventionToken;

/* } catch (error) {
this.adapter.log.error(`Unable to update ticket: ${error.message || error}`);
}*/
}

async _getData(url, method, data = null, retry = false, additional = null) {
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 753f738

Please sign in to comment.