]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fix wrong type passed in terminal.warning() 37194/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 18 Sep 2020 11:51:51 +0000 (13:51 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 21 Sep 2020 11:48:00 +0000 (13:48 +0200)
commit0e5f9c893e222ef3dbdbc67599b4887e9b27d7a4
treefe6593037c5d2782f0c3e7b8cdf3d2c826c4b474
parentc4dae752c489430fcba070f97974b6173ef340a8
ceph-volume: fix wrong type passed in terminal.warning()

`terminal.warning()` excepts a `str`.
Passing `e` means we pass a type `exceptions.RuntimeError`

Changing to `terminal.warning(e.message)` fixes the issue.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1877672
Resolves: rhbz#1877672

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit a1f42c8d7b3fe08da82c528038d8db9ccdd5c98a)
src/ceph-volume/ceph_volume/devices/simple/activate.py