diff --git a/lib/proxmox.js b/lib/proxmox.js index ba344d4..91be555 100644 --- a/lib/proxmox.js +++ b/lib/proxmox.js @@ -18,14 +18,9 @@ class ProxmoxUtils { .filter((el) => el.length); this.currentIpId = 0; - this.setNextUrlMain(0); - - this.adapter.log.warn(`Using Proxmox API: ${this.URL}`); - this.responseCache = {}; this.sharedMap = {}; - this.stopped = false; } @@ -38,6 +33,9 @@ class ProxmoxUtils { } this.URL = `https://${this.ipList[this.currentIpId]}:${this.port}/api2/json`; + + this.adapter.log.warn(`Using Proxmox API: ${this.URL}`); + return this.URL; } @@ -258,7 +256,6 @@ class ProxmoxUtils { } const pathU = url || ''; - // this.adapter.log.error(`starting request to --> ${this.URL}${pathU} ...`); axios({ method,