]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk: fsid is a known configuration option
authorLoic Dachary <loic@dachary.org>
Wed, 1 Jan 2014 21:07:57 +0000 (22:07 +0100)
committerLoic Dachary <loic@dachary.org>
Fri, 3 Jan 2014 15:30:40 +0000 (16:30 +0100)
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>
src/ceph-disk

index fef157627db08b0dbe99ccbd59d41cb97c249ec4..8101f31575efaaa37e9de7304b14dd51dad5c30b 100755 (executable)
@@ -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()