]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: convert none str to str before printing it 13501/head
authorKefu Chai <kchai@redhat.com>
Tue, 3 Jan 2017 12:40:00 +0000 (20:40 +0800)
committerShinobu Kinjo <shinobu@redhat.com>
Fri, 17 Feb 2017 18:36:26 +0000 (03:36 +0900)
commite2074cef713a973f7e8fe23055e6fa27cae50e42
tree82506867f36e44a34cb04e4e061db6206ea17c4c
parentce8edcfed6cd908779efd229202eab1232d16f1c
ceph-disk: convert none str to str before printing it

Error('somethings goes wrong', e) is thrown if exception `e` is caught
in ceph-disk, where e is not a string. so we can not just concat it in
Error's __str__(). so cast it to str before doing so.

introduced by d0e29c7

Fixes: http://tracker.ceph.com/issues/18371
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 5e0dd1e7df43a3be589d17878714756a22052d8e)
src/ceph-disk/ceph_disk/main.py