]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fix wrong type passed in terminal.warning() 37196/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:52:16 +0000 (13:52 +0200)
commit5569f3f3e149ec7c5a6aa5cff1699438ccc4c35c
treebc15d5ff35653513172e1e2ad824c5fd5042191a
parente206b61ed6450e718ced86a3f4284db04b9b4f3b
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