From 0fe5bc76d0f2599ee414aa8758256ccd2acaa931 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= Date: Tue, 9 Oct 2018 18:00:19 +0200 Subject: [PATCH] commands: Fix chassis type matching MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resolves: rhbz#1565598 Signed-off-by: Ondřej Lysoněk --- tuned/utils/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuned/utils/commands.py b/tuned/utils/commands.py index 9a81baf..9634709 100644 --- a/tuned/utils/commands.py +++ b/tuned/utils/commands.py @@ -421,7 +421,7 @@ class commands: match = False elif option == "chassis_type": for chassis in dmidecode.chassis().values(): - chassis_type = chassis["data"]["Type"] + chassis_type = chassis["data"]["Type"].decode("ascii") if re.match(value, chassis_type, re.IGNORECASE): break else: