Blame SOURCES/0001-Fix-verifying-sysctl-options-with-tabs.patch

8da745
From b6eb3416eac4e8ca21ae7d65ca9a79f18e078af7 Mon Sep 17 00:00:00 2001
8da745
From: kbotc <kbotc@mac.com>
8da745
Date: Tue, 14 May 2019 16:45:22 -0600
8da745
Subject: [PATCH] Fix verifying sysctl options with tabs
8da745
8da745
sysctl options such as net.ipv4.tcp_wmem and net.ipv4.tcp_rmem include tabs. When you use tuned-adm verify, the changes report back as broken as the whitespaces are different because one side has been sanitized but the other side has not. This pull request will fix that.
8da745
---
8da745
 tuned/plugins/plugin_sysctl.py | 2 +-
8da745
 1 file changed, 1 insertion(+), 1 deletion(-)
8da745
8da745
diff --git a/tuned/plugins/plugin_sysctl.py b/tuned/plugins/plugin_sysctl.py
8da745
index 9088bf0..537c896 100644
8da745
--- a/tuned/plugins/plugin_sysctl.py
8da745
+++ b/tuned/plugins/plugin_sysctl.py
8da745
@@ -76,7 +76,7 @@ class SysctlPlugin(base.Plugin):
8da745
 			curr_val = _read_sysctl(option)
8da745
 			value = self._process_assignment_modifiers(self._variables.expand(value), curr_val)
8da745
 			if value is not None:
8da745
-				if self._verify_value(option, self._cmd.remove_ws(value), curr_val, ignore_missing) == False:
8da745
+				if self._verify_value(option, self._cmd.remove_ws(value), self._cmd.remove_ws(curr_val), ignore_missing) == False:
8da745
 					ret = False
8da745
 		return ret
8da745
 
8da745
-- 
8da745
2.20.1
8da745