]>
git.proxmox.com Git - ceph.git/blob - ceph/src/ceph-volume/ceph_volume/__init__.py
1 from collections
import namedtuple
4 sys_info
= namedtuple('sys_info', ['devices'])
5 sys_info
.devices
= dict()
8 class UnloadedConfig(object):
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.
14 def __getattr__(self
, *a
):
15 raise RuntimeError("No valid ceph configuration file was loaded.")
17 conf
= namedtuple('config', ['ceph', 'cluster', 'verbosity', 'path', 'log_path'])
18 conf
.ceph
= UnloadedConfig()
22 __release__
= "quincy"