Blame SOURCES/sos-bz1850554-luks-not-detected.patch

bceef4
From b85039b9ed658a4a59c637552a67ca9f2cf843b1 Mon Sep 17 00:00:00 2001
bceef4
From: Jake Hunsaker <jhunsake@redhat.com>
bceef4
Date: Wed, 24 Jun 2020 10:06:31 -0400
bceef4
Subject: [PATCH] [block] Fix typo in LUKS detection
bceef4
bceef4
Fixes a typo in detecting LUKS partitions for cryptsetup output
bceef4
collection.
bceef4
bceef4
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
bceef4
---
bceef4
 sos/plugins/block.py | 2 +-
bceef4
 1 file changed, 1 insertion(+), 1 deletion(-)
bceef4
bceef4
diff --git a/sos/plugins/block.py b/sos/plugins/block.py
bceef4
index 2af25e7a..69548af6 100644
bceef4
--- a/sos/plugins/block.py
bceef4
+++ b/sos/plugins/block.py
bceef4
@@ -52,7 +52,7 @@ class Block(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
bceef4
         # for LUKS devices, collect cryptsetup luksDump
bceef4
         if lsblk['status'] == 0:
bceef4
             for line in lsblk['output'].splitlines():
bceef4
-                if 'crypto LUKS' in line:
bceef4
+                if 'crypto_LUKS' in line:
bceef4
                     dev = line.split()[0]
bceef4
                     self.add_cmd_output('cryptsetup luksDump /dev/%s' % dev)
bceef4
 
bceef4
-- 
bceef4
2.26.2
bceef4