mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-25 10:10:14 +00:00
ceph: services: do not create rados object in get_services_info
we always gave one, and the only reason why it could be undef is that we could not connect, so it makes no sense to try again and add unecessary time to the api call Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
3e4c0f06e7
commit
e7e615768f
@ -107,8 +107,9 @@ sub get_services_info {
|
||||
}
|
||||
|
||||
if (!$rados) {
|
||||
$rados = PVE::RADOS->new();
|
||||
return $result;
|
||||
}
|
||||
|
||||
my $metadata = $rados->mon_command({ prefix => "$type metadata" });
|
||||
foreach my $info (@$metadata) {
|
||||
my $id = $info->{name} // $info->{id};
|
||||
|
Loading…
Reference in New Issue
Block a user