mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-27 09:25:58 +00:00
ceph: services: improve addr selection
we map '$type addr' to '$type_addr' anyway in the ceph.conf parser, so this is not necessary also use 'public_addr' if it is set Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
217dde83f0
commit
342de4e778
@ -98,7 +98,7 @@ sub get_services_info {
|
||||
if ($section =~ m/^$type\.(\S+)$/) {
|
||||
my $id = $1;
|
||||
my $service = $result->{$id};
|
||||
my $addr = $d->{"$type addr"} // $d->{"${type}_addr"} // $d->{host};
|
||||
my $addr = $d->{"${type}_addr"} // $d->{public_addr} // $d->{host};
|
||||
$service->{name} //= $id;
|
||||
$service->{addr} //= $addr;
|
||||
$service->{state} //= 'unknown';
|
||||
|
Loading…
Reference in New Issue
Block a user