mirror of
git://git.proxmox.com/git/pve-ha-manager.git
synced 2025-01-03 05:17:57 +03:00
usage stats: tiny code style clean-up
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
56d4c7a50a
commit
07284f1194
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user