From eee7cbb7d8218bf42380bc37d632882dd2bf6443 Mon Sep 17 00:00:00 2001 From: arteck <6681528+arteck@users.noreply.github.com> Date: Mon, 13 Jan 2025 18:11:43 +0100 Subject: [PATCH] platte ist aus ?? --- lib/proxmox.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/proxmox.js b/lib/proxmox.js index 756ea76..61a40ce 100644 --- a/lib/proxmox.js +++ b/lib/proxmox.js @@ -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() { @@ -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') {