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:
Loic Dachary 2014-01-01 22:07:57 +01:00
parent 97f516a1dd
commit b65eb377f5

View File

@ -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()