From: Guillaume Abrioux Date: Wed, 5 Feb 2020 01:15:17 +0000 (+0100) Subject: ceph-volume: remove stderr in has_bluestore_label() X-Git-Tag: v13.2.9~44^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=782096bc7903f87a6afa0770c3970119fd9a2c2c;p=ceph.git ceph-volume: remove stderr in has_bluestore_label() We don't want to generate this log when a call to `has_bluestore_label()` fails. Signed-off-by: Guillaume Abrioux (cherry picked from commit 7f8371c32b3f613b0d094f6f26ffbeb19ea0d25b) --- diff --git a/src/ceph-volume/ceph_volume/util/device.py b/src/ceph-volume/ceph_volume/util/device.py index 3a5f8361da87..4d776e17c10d 100644 --- a/src/ceph-volume/ceph_volume/util/device.py +++ b/src/ceph-volume/ceph_volume/util/device.py @@ -316,7 +316,7 @@ class Device(object): def has_bluestore_label(self): out, err, ret = process.call([ 'ceph-bluestore-tool', 'show-label', - '--dev', self.abspath]) + '--dev', self.abspath], verbose_on_failure=False) if ret: return False return True