From 3b370c5c2e169a14f2189c9a0a42653285cf945e Mon Sep 17 00:00:00 2001 From: Jan Vcelak Date: Tue, 1 Jun 2010 10:18:47 +0200 Subject: [PATCH] tuned_adm: fixed active profile displaying --- tuned_adm.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tuned_adm.py b/tuned_adm.py index 5aa1815..fe30773 100644 --- a/tuned_adm.py +++ b/tuned_adm.py @@ -43,7 +43,7 @@ class Tuned_adm: if args[0] == "list": self.list() elif args[0] == "active": - self.active() + print self.get_active() elif args[0] == "off": self.check_permissions() self.off() @@ -74,7 +74,6 @@ class Tuned_adm: print "No profiles defined." def get_active(self): - print self.active_file file = open(self.active_file, "r") profile = file.read() file.close()