]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: show a nice error message when ceph.conf is not loaded
authorAndrew Schoen <aschoen@redhat.com>
Mon, 2 Jul 2018 20:58:44 +0000 (15:58 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 3 Jul 2018 15:43:10 +0000 (10:43 -0500)
commita58d30c114de9db8c351859e5fc0e2bfe468ee4f
treea462408f1ab377d2ee296045f6bbad41beb1dcad
parentf2aaf1d24ac18b3d9874526af8c3c69c2abdb226
ceph-volume: show a nice error message when ceph.conf is not loaded

If the ceph configuration file is not loaded correctly and then values
from it are used then an undescript error message is shown, e.g.

AttributeError: 'property' object has no attribute 'get'

With this change that same error condition shows the message:

RuntimeError: No valid ceph configuration file was loaded.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit e42ecb831914b07c7c8559d4556a8aabd2accd0c)
src/ceph-volume/ceph_volume/__init__.py