From 07284f11943a1e6d71990c260827d7dd44aac6d4 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 17 Nov 2023 14:47:12 +0100 Subject: [PATCH] usage stats: tiny code style clean-up Signed-off-by: Thomas Lamprecht --- src/PVE/HA/Usage/Static.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/HA/Usage/Static.pm b/src/PVE/HA/Usage/Static.pm index 73ce836..3d0af3a 100644 --- a/src/PVE/HA/Usage/Static.pm +++ b/src/PVE/HA/Usage/Static.pm @@ -68,7 +68,7 @@ my sub get_service_usage { my (undef, $type, $id) = $self->{haenv}->parse_sid($sid); my $plugin = PVE::HA::Resources->lookup($type); - my $stats = eval { $plugin->get_static_stats($self->{haenv}, $id, $service_node); }; + my $stats = eval { $plugin->get_static_stats($self->{haenv}, $id, $service_node) }; if (my $err = $@) { # config might've already moved during a migration $stats = eval { $plugin->get_static_stats($self->{haenv}, $id, $migration_target); } if $migration_target; -- 2.39.2