mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-05 20:31:47 +00:00
5to6: ceph mon host check: switch config check from defined to hash values exist
we can get here if a empty (or one with just comments) ceph.conf exists Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
780a57b6d1
commit
f9f8cd7d01
@ -433,7 +433,7 @@ sub check_ceph {
|
||||
|
||||
log_info("checking Ceph config..");
|
||||
my $conf = PVE::Cluster::cfs_read_file('ceph.conf');
|
||||
if (defined($conf)) {
|
||||
if (%$conf) {
|
||||
my $global = $conf->{global};
|
||||
|
||||
my $global_monhost = $global->{mon_host} // $global->{"mon host"} // $global->{"mon-host"};
|
||||
@ -454,7 +454,7 @@ sub check_ceph {
|
||||
log_pass("ms_bind_ipv6 not enabled");
|
||||
}
|
||||
} else {
|
||||
log_skip("no ceph config found");
|
||||
log_warn("Empty ceph config found");
|
||||
}
|
||||
|
||||
my $local_ceph_ver = PVE::Ceph::Tools::get_local_version(1);
|
||||
|
Loading…
Reference in New Issue
Block a user