tuned/tuned-2.20-rc1-switch-profile-improve-error.patch
Jaroslav Škarvada 4165d6699a post RC.1 fixes
related: rhbz#2133815
fixed possible traceback on SIGHUP
  resolves: rhbz#2169712

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2023-02-15 22:45:52 +01:00

32 lines
1.0 KiB
Diff

From e4bbbf018fa21f499462bd32abd46fdc62da1981 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= <jskarvad@redhat.com>
Date: Wed, 15 Feb 2023 21:33:24 +0100
Subject: [PATCH] tuned-adm: better error message for unauthorized
switch_profile
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
As a sideeffect of 08b348b7a4b1a5d94bea160fecea4a2759b01a9d we got
strange error messages for unauthorized switch_profile requests. This
commit tries to improve it.
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
---
tuned/admin/admin.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tuned/admin/admin.py b/tuned/admin/admin.py
index 473880d7..f8f4d0bb 100644
--- a/tuned/admin/admin.py
+++ b/tuned/admin/admin.py
@@ -249,7 +249,7 @@ def _profile_print_status(self, ret, msg):
self._error("Cannot enable the tuning.")
ret = False
else:
- self._error(msg)
+ self._error("Unable to switch profile: %s" % msg)
return ret
def _action_dbus_wait_profile(self, profile_name):