]> git.proxmox.com Git - ceph.git/blame - ceph/src/ceph-volume/ceph_volume/__init__.py
update sources to 12.2.7
[ceph.git] / ceph / src / ceph-volume / ceph_volume / __init__.py
CommitLineData
d2e6a577
FG
1from collections import namedtuple
2
28e407b8
AA
3
4class 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
d2e6a577 13conf = namedtuple('config', ['ceph', 'cluster', 'verbosity', 'path', 'log_path'])
28e407b8 14conf.ceph = UnloadedConfig()
d2e6a577
FG
15
16__version__ = "1.0.0"