]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fix wrong type passed in terminal.warning() 37195/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:49:07 +0000 (13:49 +0200)
commit1e34d0540e874892a1d9f98c28de24c862548464
tree3e3f4fd8924d5a92f847428aadd4eac63b494cd6
parentf6ac5b98480fad05bf840f96663f148caf7153fd
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