mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-12 08:32:08 +00:00
api: services: code cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
6b3e760581
commit
5fa0c20483
@ -72,8 +72,7 @@ sub get_service_list {
|
||||
|
||||
my $list = {};
|
||||
foreach my $name (@$service_name_list) {
|
||||
my $ss;
|
||||
eval { $ss = &$get_full_service_state($name); };
|
||||
my $ss = eval { $get_full_service_state->($name) };
|
||||
warn $@ if $@;
|
||||
next if !$ss;
|
||||
next if !defined($ss->{Description});
|
||||
|
Loading…
Reference in New Issue
Block a user