mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-08 19:41:44 +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 ($type) = @_;
|
||||||
|
|
||||||
my $raw = PVE::Cluster::get_node_kv("ceph-$type");
|
my $raw = PVE::Cluster::get_node_kv("ceph-$type");
|
||||||
my $res = {};
|
my $res = {
|
||||||
|
map { $_ => eval { decode_json($raw->{$_}) } } keys $raw->%*
|
||||||
for my $host (keys %$raw) {
|
};
|
||||||
$res->{$host} = eval { decode_json($raw->{$host}) };
|
|
||||||
}
|
|
||||||
|
|
||||||
return $res;
|
return $res;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user