Fix hang when 'tuned-adm profile' is given empty profile name
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
This commit is contained in:
parent
d78565a205
commit
ed8bf19ec2
1 changed files with 1 additions and 1 deletions
|
|
@ -222,7 +222,7 @@ class Admin(object):
|
|||
return self._action_dbus_list()
|
||||
profile_name = " ".join(profiles)
|
||||
if profile_name == "":
|
||||
return False
|
||||
return self._controller.exit(False)
|
||||
self._daemon_action_finished.clear()
|
||||
(ret, msg) = self._controller.switch_profile(profile_name)
|
||||
if self._async or not ret:
|
||||
|
|
|
|||
Loading…
Reference in a new issue