mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-05 14:32:46 +00:00
ceph services: get_cluster_service: code cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
656667dbd2
commit
b1a3af5c65
@ -85,11 +85,9 @@ sub get_cluster_service {
|
||||
my ($type) = @_;
|
||||
|
||||
my $raw = PVE::Cluster::get_node_kv("ceph-$type");
|
||||
my $res = {};
|
||||
|
||||
for my $host (keys %$raw) {
|
||||
$res->{$host} = eval { decode_json($raw->{$host}) };
|
||||
}
|
||||
my $res = {
|
||||
map { $_ => eval { decode_json($raw->{$_}) } } keys $raw->%*
|
||||
};
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user