]> git.proxmox.com Git - pve-ha-manager.git/commit - src/PVE/HA/Manager.pm
service data: only set failed_nodes key if needed
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 30 Mar 2019 18:52:46 +0000 (19:52 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 30 Mar 2019 18:52:49 +0000 (19:52 +0100)
commitea998b07ef72d45ce5afb2d4d80f3f09fe5a5623
treef01b4611ce2a955a29c176575646975ef7789181
parent32ae610b9c13577d7237b994eda4057438b198c4
service data: only set failed_nodes key if needed

Currently we always set this, and thus each services gets a
"failed_nodes": null,
entry in the written out JSON ha/manager_status

so only set if neeed, which can reduce mananager_status quite a bit
with a lot of services.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/HA/Manager.pm