]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Mon, 2 Jul 2018 21:06:22 +0000 (16:06 -0500)
commite42ecb831914b07c7c8559d4556a8aabd2accd0c
treec545e8cb926989da750023615c38b16926af577f
parent25508d538b70fd721543bfe22464ab1d7b899923
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>
src/ceph-volume/ceph_volume/__init__.py