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