]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: convert none str to str before printing it 12760/head
authorKefu Chai <kchai@redhat.com>
Tue, 3 Jan 2017 12:40:00 +0000 (20:40 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 4 Jan 2017 16:12:55 +0000 (00:12 +0800)
commit5e0dd1e7df43a3be589d17878714756a22052d8e
tree8debf7b40b9b4571a59952db907d6fee2b7dc768
parent543886405d58c028b70510a7f687f0bf71ab3937
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>
src/ceph-disk/ceph_disk/main.py