From: Guillaume Abrioux Date: Fri, 18 Sep 2020 11:51:51 +0000 (+0200) Subject: ceph-volume: fix wrong type passed in terminal.warning() X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=5569f3f3e149ec7c5a6aa5cff1699438ccc4c35c;p=ceph.git 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 (cherry picked from commit a1f42c8d7b3fe08da82c528038d8db9ccdd5c98a) --- diff --git a/src/ceph-volume/ceph_volume/devices/simple/activate.py b/src/ceph-volume/ceph_volume/devices/simple/activate.py index 4ce69d019b8bb..1dfc1e70d85bf 100644 --- a/src/ceph-volume/ceph_volume/devices/simple/activate.py +++ b/src/ceph-volume/ceph_volume/devices/simple/activate.py @@ -286,7 +286,7 @@ class Activate(object): try: self.activate(args) except RuntimeError as e: - terminal.warning(e) + terminal.warning(e.message) else: if args.file: json_config = args.file