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:
parent
d9a55b5d3c
commit
49b0ccc7fe
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user