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