]> git.proxmox.com Git - pve-ha-manager.git/commitdiff
usage stats: tiny code style clean-up
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 17 Nov 2023 13:47:12 +0000 (14:47 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 17 Nov 2023 13:47:12 +0000 (14:47 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/HA/Usage/Static.pm

index 73ce83698a1a4f5760314ba64b0d02692b86c1f9..3d0af3a3b7c8ae4cd4e3a2f9bfad04c38f96ed4a 100644 (file)
@@ -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;