1
0
Fork 0

tuned-adm: do not timeout if non-existent profile is requested

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
Jaroslav Škarvada 2016-08-23 16:55:29 +02:00
parent bbfc2c6e54
commit 8121ea9166

View file

@ -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()