Blob Blame History Raw
From 8121ea9166d5f2828d97338811c5521c7a30489f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= <jskarvad@redhat.com>
Date: Tue, 23 Aug 2016 16:55:29 +0200
Subject: tuned-adm: do not timeout if non-existent profile is requested
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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 ddf6d9e..0c4caa5 100644
--- a/tuned/admin/admin.py
+++ b/tuned/admin/admin.py
@@ -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()
-- 
cgit v0.12