5
0
mirror of git://git.proxmox.com/git/pve-ha-manager.git synced 2025-01-04 09:17:59 +03:00

sim hardware: avoid hard error on usage stats parsing

now that we can automatically derive them from the SID

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-03-20 11:05:09 +01:00
parent d9a55b5d3c
commit 49b0ccc7fe

View File

@ -336,7 +336,8 @@ sub read_static_service_stats {
my ($self) = @_;
my $filename = "$self->{statusdir}/static_service_stats";
my $stats = PVE::HA::Tools::read_json_from_file($filename);
my $stats = eval { PVE::HA::Tools::read_json_from_file($filename) };
$self->log('error', "loading static service stats failed - $@") if $@;
return $stats;
}