diff --git a/testinfra/modules/blockdevice.py b/testinfra/modules/blockdevice.py index 5f129065..fdfd9e0c 100644 --- a/testinfra/modules/blockdevice.py +++ b/testinfra/modules/blockdevice.py @@ -130,7 +130,7 @@ def _data(self): header = ["RO", "RA", "SSZ", "BSZ", "StartSec", "Size", "Device"] command = "blockdev --report %s" blockdev = self.run(command, self.device) - if blockdev.rc != 0 or blockdev.stderr: + if blockdev.rc != 0: raise RuntimeError("Failed to gather data: {}".format(blockdev.stderr)) output = blockdev.stdout.splitlines() if len(output) < 2: