mirror of
https://github.com/ceph/ceph
synced 2024-12-28 06:23:08 +00:00
ceph-disk: fsid is a known configuration option
Use get_conf_with_default instead of get_conf because fsid is a known ceph configuration option. It allows overriding via CEPH_ARGS which is convenient for testing. Only options that are not found in config_opts.h are fetch via get_conf. Signed-off-by: Loic Dachary <loic@dachary.org>
This commit is contained in:
parent
97f516a1dd
commit
b65eb377f5
@ -653,7 +653,7 @@ def get_fsid(cluster):
|
||||
|
||||
:return: The fsid or raises Error.
|
||||
"""
|
||||
fsid = get_conf(cluster=cluster, variable='fsid')
|
||||
fsid = get_conf_with_default(cluster=cluster, variable='fsid')
|
||||
if fsid is None:
|
||||
raise Error('getting cluster uuid from configuration failed')
|
||||
return fsid.lower()
|
||||
|
Loading…
Reference in New Issue
Block a user