]> 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:44:10 +0000 (10:44 -0500)
commitd02062fe227f68dbbe4aa159b343c7a62cf241df
tree54e69c0dcd83f531d85dc2889ad2c912224a347e
parent5849a0aebb9882a23adddea34531bb01174a48af
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