Skip to content

Commit

Permalink
platte ist aus ??
Browse files Browse the repository at this point in the history
  • Loading branch information
arteck authored Jan 13, 2025
1 parent 753f738 commit eee7cbb
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions lib/proxmox.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class ProxmoxUtils {
}

async getNodeDisksSmart(node, disk) {
return this._getData(`/nodes/${node}/disks/smart?disk=${disk}`, 'get');
return this._getData(`/nodes/${node}/disks/smart?disk=${disk}`, 'get', '', '', 'disk');
}

async getCephInformation() {
Expand Down Expand Up @@ -286,11 +286,13 @@ class ProxmoxUtils {
}
} catch (error) {
if (additional !== 'storage') {
this.adapter.log.warn(`${additional} -- Use Next Proxmox Host because of communication failure ${this.URL}${url}`);

this.setNextUrlMain();
await this.ticket();
return this._getData(url, method, data, true);
if (response.data !== null) { // kann sein dass die platte aus ist
this.adapter.log.warn(`${additional} -- Use Next Proxmox Host because of communication failure ${this.URL}${url}`);

this.setNextUrlMain();
await this.ticket();
return this._getData(url, method, data, true);
}
}

if (additional === 'storage') {
Expand Down

0 comments on commit eee7cbb

Please sign in to comment.