tuned_adm: fixed active profile displaying
This commit is contained in:
parent
7e9001fdb2
commit
3b370c5c2e
1 changed files with 1 additions and 2 deletions
|
|
@ -43,7 +43,7 @@ class Tuned_adm:
|
||||||
if args[0] == "list":
|
if args[0] == "list":
|
||||||
self.list()
|
self.list()
|
||||||
elif args[0] == "active":
|
elif args[0] == "active":
|
||||||
self.active()
|
print self.get_active()
|
||||||
elif args[0] == "off":
|
elif args[0] == "off":
|
||||||
self.check_permissions()
|
self.check_permissions()
|
||||||
self.off()
|
self.off()
|
||||||
|
|
@ -74,7 +74,6 @@ class Tuned_adm:
|
||||||
print "No profiles defined."
|
print "No profiles defined."
|
||||||
|
|
||||||
def get_active(self):
|
def get_active(self):
|
||||||
print self.active_file
|
|
||||||
file = open(self.active_file, "r")
|
file = open(self.active_file, "r")
|
||||||
profile = file.read()
|
profile = file.read()
|
||||||
file.close()
|
file.close()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue