1
0
Fork 0

tuned-adm: better error message for unauthorized switch_profile

As a sideeffect of 08b348b7a4 we got
strange error messages for unauthorized switch_profile requests. This
commit tries to improve it.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
Jaroslav Škarvada 2023-02-15 21:33:24 +01:00
parent b4f21db0e9
commit e4bbbf018f
No known key found for this signature in database
GPG key ID: D8E1C00E076E840B

View file

@ -249,7 +249,7 @@ class Admin(object):
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):