1
0
Fork 0

functions: renamed built-in function cpus_online to cpulist_online

Renamed to stay consistent.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
Jaroslav Škarvada 2015-06-08 14:31:11 +02:00
parent 6168d5e2e6
commit e5a69c2bae

View file

@ -5,14 +5,14 @@ from tuned.utils.commands import commands
log = tuned.logs.get()
class cpus_online(base.Function):
class cpulist_online(base.Function):
"""
Checks whether CPUs from list are online, returns list containing
only online CPUs
"""
def __init__(self):
# arbitrary number of arguments
super(self.__class__, self).__init__("cpus_online", 0)
super(self.__class__, self).__init__("cpulist_online", 0)
def execute(self, args):
if not super(self.__class__, self).execute(args):