aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2020-06-24 10:06:31 -0400
committerJake Hunsaker <jhunsake@redhat.com>2020-06-24 10:06:31 -0400
commitb85039b9ed658a4a59c637552a67ca9f2cf843b1 (patch)
tree55037a35a476e9089b48fab9337ac7dca0c2d135
parent3fd1db913f35eccb35fd63c98f2b381ad270cccd (diff)
downloadsos-b85039b9ed658a4a59c637552a67ca9f2cf843b1.tar.gz
[block] Fix typo in LUKS detection
Fixes a typo in detecting LUKS partitions for cryptsetup output collection. Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r--sos/report/plugins/block.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/report/plugins/block.py b/sos/report/plugins/block.py
index 2af25e7a..69548af6 100644
--- a/sos/report/plugins/block.py
+++ b/sos/report/plugins/block.py
@@ -52,7 +52,7 @@ class Block(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
# for LUKS devices, collect cryptsetup luksDump
if lsblk['status'] == 0:
for line in lsblk['output'].splitlines():
- if 'crypto LUKS' in line:
+ if 'crypto_LUKS' in line:
dev = line.split()[0]
self.add_cmd_output('cryptsetup luksDump /dev/%s' % dev)