]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: remove stderr in has_bluestore_label() 33074/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 5 Feb 2020 01:15:17 +0000 (02:15 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 5 Feb 2020 07:49:16 +0000 (08:49 +0100)
We don't want to generate this log when a call to
`has_bluestore_label()` fails.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
src/ceph-volume/ceph_volume/util/device.py

index 0bbfcf4e8e9058ab7ecb562ca29b2821890e3da2..7a7f00f26bc932b0a8a4084b45db532aa6edf001 100644 (file)
@@ -321,7 +321,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