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>
$sd->{state} = $new_state;
$sd->{node} = $old_node;
- $sd->{failed_nodes} = $old_failed_nodes;
+ $sd->{failed_nodes} = $old_failed_nodes if defined($old_failed_nodes);
my $text_state = '';
foreach my $k (sort keys %params) {