]> git.proxmox.com Git - ceph.git/blob - ceph/src/ceph-volume/ceph_volume/__init__.py
update sources to 12.2.7
[ceph.git] / ceph / src / ceph-volume / ceph_volume / __init__.py
1 from collections import namedtuple
2
3
4 class UnloadedConfig(object):
5 """
6 This class is used as the default value for conf.ceph so that if
7 a configuration file is not successfully loaded then it will give
8 a nice error message when values from the config are used.
9 """
10 def __getattr__(self, *a):
11 raise RuntimeError("No valid ceph configuration file was loaded.")
12
13 conf = namedtuple('config', ['ceph', 'cluster', 'verbosity', 'path', 'log_path'])
14 conf.ceph = UnloadedConfig()
15
16 __version__ = "1.0.0"