]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fix wrong type passed in terminal.warning() 37234/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 07:36:27 +0000 (09:36 +0200)
commita1f42c8d7b3fe08da82c528038d8db9ccdd5c98a
treebfd804e4add5a77e84b399c3ee2dd3eb73df5d6c
parent35613d091a8516447a401c7dafcd67729bd58414
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>
src/ceph-volume/ceph_volume/devices/simple/activate.py