Blame SOURCES/tuned-2.5.1-restart-attempt-fix.patch

30cc02
From 7b4596ba21893f12181630d73d6ec99f447104bc Mon Sep 17 00:00:00 2001
30cc02
From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= <jskarvad@redhat.com>
30cc02
Date: Mon, 31 Aug 2015 11:19:41 +0200
30cc02
Subject: [PATCH] tuned-adm: fixed restart attempt if tuned is not running
30cc02
MIME-Version: 1.0
30cc02
Content-Type: text/plain; charset=UTF-8
30cc02
Content-Transfer-Encoding: 8bit
30cc02
30cc02
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
30cc02
---
30cc02
 tuned/admin/admin.py | 2 +-
30cc02
 1 file changed, 1 insertion(+), 1 deletion(-)
30cc02
30cc02
diff --git a/tuned/admin/admin.py b/tuned/admin/admin.py
30cc02
index 4db24c4..1180785 100644
30cc02
--- a/tuned/admin/admin.py
30cc02
+++ b/tuned/admin/admin.py
30cc02
@@ -77,7 +77,7 @@ class Admin(object):
30cc02
 				if self._cmd.write_to_file(consts.ACTIVE_PROFILE_FILE, profile_name):
30cc02
 					print "Trying to (re)start tuned..."
30cc02
 					(ret, out) = self._cmd.execute(["service", "tuned", "restart"])
30cc02
-					if retcode == 0:
30cc02
+					if ret == 0:
30cc02
 						print "Tuned (re)started, changes applied."
30cc02
 					else:
30cc02
 						print "Tuned (re)start failed, you need to (re)start tuned by hand for changes to apply."
30cc02
-- 
30cc02
2.5.0
30cc02