tuned-adm: do not timeout if non-existent profile is requested
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
parent
bbfc2c6e54
commit
8121ea9166
1 changed files with 1 additions and 1 deletions
|
|
@ -186,7 +186,7 @@ class Admin(object):
|
|||
return False
|
||||
self._daemon_action_finished.clear()
|
||||
(ret, msg) = self._controller.switch_profile(profile_name)
|
||||
if self._async:
|
||||
if self._async or not ret:
|
||||
return self._controller.exit(self._profile_print_status(ret, msg))
|
||||
else:
|
||||
self._timestamp = time.time()
|
||||
|
|
|
|||
Loading…
Reference in a new issue