5ef531
From b6eb3416eac4e8ca21ae7d65ca9a79f18e078af7 Mon Sep 17 00:00:00 2001
5ef531
From: kbotc <kbotc@mac.com>
5ef531
Date: Tue, 14 May 2019 16:45:22 -0600
5ef531
Subject: [PATCH] Fix verifying sysctl options with tabs
5ef531
5ef531
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.
5ef531
---
5ef531
 tuned/plugins/plugin_sysctl.py | 2 +-
5ef531
 1 file changed, 1 insertion(+), 1 deletion(-)
5ef531
5ef531
diff --git a/tuned/plugins/plugin_sysctl.py b/tuned/plugins/plugin_sysctl.py
5ef531
index 9088bf0..537c896 100644
5ef531
--- a/tuned/plugins/plugin_sysctl.py
5ef531
+++ b/tuned/plugins/plugin_sysctl.py
5ef531
@@ -76,7 +76,7 @@ class SysctlPlugin(base.Plugin):
5ef531
 			curr_val = _read_sysctl(option)
5ef531
 			value = self._process_assignment_modifiers(self._variables.expand(value), curr_val)
5ef531
 			if value is not None:
5ef531
-				if self._verify_value(option, self._cmd.remove_ws(value), curr_val, ignore_missing) == False:
5ef531
+				if self._verify_value(option, self._cmd.remove_ws(value), self._cmd.remove_ws(curr_val), ignore_missing) == False:
5ef531
 					ret = False
5ef531
 		return ret
5ef531
 
5ef531
-- 
5ef531
2.20.1
5ef531