Blame SOURCES/sos-bz1850544-block_luks_partition_not_detected.patch

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