]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: convert none str to str before printing it 13187/head
authorKefu Chai <kchai@redhat.com>
Tue, 3 Jan 2017 12:40:00 +0000 (20:40 +0800)
committerAlexey Sheplyakov <asheplyakov@mirantis.com>
Mon, 30 Jan 2017 12:03:27 +0000 (16:03 +0400)
commit18545a27eccfa0b22b1782bb52e3f47afef8ec39
tree18758966a1995f2df860c9089cba85027f695b4f
parent20a480defb607e6e5a72f2bcc3868fb14f9e56de
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