From: Alfredo Deza Date: Wed, 3 Oct 2018 12:31:20 +0000 (-0400) Subject: ceph-volume util.encryption don't push stderr to terminal when cryptsetup fails to... X-Git-Tag: v13.2.3~64^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F24826%2Fhead;p=ceph.git ceph-volume util.encryption don't push stderr to terminal when cryptsetup fails to find device Signed-off-by: Alfredo Deza (cherry picked from commit 40f919850fddd14659243c47860224981439906a) --- diff --git a/src/ceph-volume/ceph_volume/util/encryption.py b/src/ceph-volume/ceph_volume/util/encryption.py index cc594a07e83..bb4d28cb563 100644 --- a/src/ceph-volume/ceph_volume/util/encryption.py +++ b/src/ceph-volume/ceph_volume/util/encryption.py @@ -189,7 +189,8 @@ def status(device): 'status', device, ] - out, err, code = process.call(command, show_command=True) + out, err, code = process.call(command, show_command=True, verbose_on_failure=False) + metadata = {} if code != 0: logger.warning('failed to detect device mapper information')