mirror of
https://github.com/ceph/ceph
synced 2025-02-24 19:47:44 +00:00
ceph-daemon: behave with no /etc/ceph/ceph.conf
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
2d915c8d0e
commit
bf0e51a5b7
@ -419,10 +419,10 @@ def get_legacy_config_fsid(cluster, legacy_dir=None):
|
||||
if legacy_dir is not None:
|
||||
config_file = os.path.abspath(legacy_dir + config_file)
|
||||
|
||||
config = read_config(config_file)
|
||||
|
||||
if config.has_section('global') and config.has_option('global', 'fsid'):
|
||||
return config.get('global', 'fsid')
|
||||
if os.path.exists(config_file):
|
||||
config = read_config(config_file)
|
||||
if config.has_section('global') and config.has_option('global', 'fsid'):
|
||||
return config.get('global', 'fsid')
|
||||
return None
|
||||
|
||||
def get_legacy_daemon_fsid(cluster, daemon_type, daemon_id, legacy_dir=None):
|
||||
|
Loading…
Reference in New Issue
Block a user