Fix calling methods of parent classes
This fixes Pylint errors such as the following: tuned/logs.py:39: [E1003(bad-super-call), TunedLogger.__init__] \ Bad first argument 'self.__class__' given to super() This prevents infinite recursion errors, see https://stackoverflow.com/a/18208725 This does introduce name duplication, but when we drop python2 support in the future, we can use super() without arguments.
This commit is contained in:
parent
560913b6e4
commit
e3ed58e160
35 changed files with 62 additions and 62 deletions
|
|
@ -17,7 +17,7 @@ class Controller(tuned.exports.interfaces.ExportableInterface):
|
|||
"""
|
||||
|
||||
def __init__(self, daemon, global_config):
|
||||
super(self.__class__, self).__init__()
|
||||
super(Controller, self).__init__()
|
||||
self._daemon = daemon
|
||||
self._global_config = global_config
|
||||
self._terminate = threading.Event()
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ class ExportsController(tuned.patterns.Singleton):
|
|||
"""
|
||||
|
||||
def __init__(self):
|
||||
super(self.__class__, self).__init__()
|
||||
super(ExportsController, self).__init__()
|
||||
self._exporters = []
|
||||
self._objects = []
|
||||
self._exports_initialized = False
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ class TunedLogger(logging.getLoggerClass()):
|
|||
_file_handler = None
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(self.__class__, self).__init__(*args, **kwargs)
|
||||
super(TunedLogger, self).__init__(*args, **kwargs)
|
||||
self.setLevel(logging.INFO)
|
||||
self.switch_to_console()
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ __all__ = ["Repository"]
|
|||
class Repository(PluginLoader):
|
||||
|
||||
def __init__(self):
|
||||
super(self.__class__, self).__init__()
|
||||
super(Repository, self).__init__()
|
||||
self._monitors = set()
|
||||
|
||||
@property
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ class BootloaderPlugin(base.Plugin):
|
|||
def __init__(self, *args, **kwargs):
|
||||
if not os.path.isfile(consts.GRUB2_TUNED_TEMPLATE_PATH):
|
||||
raise exceptions.NotSupportedPluginException("Required GRUB2 template not found, disabling plugin.")
|
||||
super(self.__class__, self).__init__(*args, **kwargs)
|
||||
super(BootloaderPlugin, self).__init__(*args, **kwargs)
|
||||
self._cmd = commands()
|
||||
|
||||
def _instance_init(self, instance):
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ class CPULatencyPlugin(base.Plugin):
|
|||
"""
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(self.__class__, self).__init__(*args, **kwargs)
|
||||
super(CPULatencyPlugin, self).__init__(*args, **kwargs)
|
||||
|
||||
self._has_pm_qos = True
|
||||
self._has_energy_perf_bias = True
|
||||
|
|
@ -142,7 +142,7 @@ class CPULatencyPlugin(base.Plugin):
|
|||
return v
|
||||
|
||||
def _instance_apply_static(self, instance):
|
||||
super(self.__class__, self)._instance_apply_static(instance)
|
||||
super(CPULatencyPlugin, self)._instance_apply_static(instance)
|
||||
|
||||
if not instance._first_instance:
|
||||
return
|
||||
|
|
@ -156,7 +156,7 @@ class CPULatencyPlugin(base.Plugin):
|
|||
self._no_turbo_save = self._getset_intel_pstate_attr("no_turbo", instance.options["no_turbo"])
|
||||
|
||||
def _instance_unapply_static(self, instance, full_rollback = False):
|
||||
super(self.__class__, self)._instance_unapply_static(instance, full_rollback)
|
||||
super(CPULatencyPlugin, self)._instance_unapply_static(instance, full_rollback)
|
||||
|
||||
if instance._first_instance and self._has_intel_pstate:
|
||||
self._set_intel_pstate_attr("min_perf_pct", self._min_perf_pct_save)
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ class DiskPlugin(hotplug.Plugin):
|
|||
"""
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(self.__class__, self).__init__(*args, **kwargs)
|
||||
super(DiskPlugin, self).__init__(*args, **kwargs)
|
||||
|
||||
self._power_levels = [254, 225, 195, 165, 145, 125, 105, 85, 70, 55, 30, 20]
|
||||
self._spindown_levels = [0, 250, 230, 210, 190, 170, 150, 130, 110, 90, 70, 60]
|
||||
|
|
@ -51,17 +51,17 @@ class DiskPlugin(hotplug.Plugin):
|
|||
|
||||
def _hardware_events_callback(self, event, device):
|
||||
if self._device_is_supported(device):
|
||||
super(self.__class__, self)._hardware_events_callback(event, device)
|
||||
super(DiskPlugin, self)._hardware_events_callback(event, device)
|
||||
|
||||
def _added_device_apply_tuning(self, instance, device_name):
|
||||
if instance._load_monitor is not None:
|
||||
instance._load_monitor.add_device(device_name)
|
||||
super(self.__class__, self)._added_device_apply_tuning(instance, device_name)
|
||||
super(DiskPlugin, self)._added_device_apply_tuning(instance, device_name)
|
||||
|
||||
def _removed_device_unapply_tuning(self, instance, device_name):
|
||||
if instance._load_monitor is not None:
|
||||
instance._load_monitor.remove_device(device_name)
|
||||
super(self.__class__, self)._removed_device_unapply_tuning(instance, device_name)
|
||||
super(DiskPlugin, self)._removed_device_unapply_tuning(instance, device_name)
|
||||
|
||||
@classmethod
|
||||
def _get_config_options(cls):
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ class EeePCSHEPlugin(base.Plugin):
|
|||
self._control_file = "/sys/devices/platform/eeepc-wmi/cpufv"
|
||||
if not os.path.isfile(self._control_file):
|
||||
raise exceptions.NotSupportedPluginException("Plugin is not supported on your hardware.")
|
||||
super(self.__class__, self).__init__(*args, **kwargs)
|
||||
super(EeePCSHEPlugin, self).__init__(*args, **kwargs)
|
||||
|
||||
@classmethod
|
||||
def _get_config_options(self):
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ class ModulesPlugin(base.Plugin):
|
|||
"""
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(self.__class__, self).__init__(*args, **kwargs)
|
||||
super(ModulesPlugin, self).__init__(*args, **kwargs)
|
||||
self._has_dynamic_options = True
|
||||
self._cmd = commands()
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ class NetTuningPlugin(base.Plugin):
|
|||
"""
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(self.__class__, self).__init__(*args, **kwargs)
|
||||
super(NetTuningPlugin, self).__init__(*args, **kwargs)
|
||||
self._load_smallest = 0.05
|
||||
self._level_steps = 6
|
||||
self._cmd = commands()
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ class SchedulerPlugin(base.Plugin):
|
|||
"SCHED_OTHER":"o", "SCHED_IDLE":"i"}
|
||||
|
||||
def __init__(self, monitor_repository, storage_factory, hardware_inventory, device_matcher, device_matcher_udev, plugin_instance_factory, global_cfg, variables):
|
||||
super(self.__class__, self).__init__(monitor_repository, storage_factory, hardware_inventory, device_matcher, device_matcher_udev, plugin_instance_factory, global_cfg, variables)
|
||||
super(SchedulerPlugin, self).__init__(monitor_repository, storage_factory, hardware_inventory, device_matcher, device_matcher_udev, plugin_instance_factory, global_cfg, variables)
|
||||
self._has_dynamic_options = True
|
||||
self._daemon = consts.CFG_DEF_DAEMON
|
||||
self._sleep_interval = int(consts.CFG_DEF_SLEEP_INTERVAL)
|
||||
|
|
@ -240,7 +240,7 @@ class SchedulerPlugin(base.Plugin):
|
|||
self._set_affinity(pid, affinity, no_error)
|
||||
|
||||
def _instance_apply_static(self, instance):
|
||||
super(self.__class__, self)._instance_apply_static(instance)
|
||||
super(SchedulerPlugin, self)._instance_apply_static(instance)
|
||||
ps = self.get_processes()
|
||||
if ps is None:
|
||||
log.error("error applying tuning, cannot get information about running processes")
|
||||
|
|
@ -275,7 +275,7 @@ class SchedulerPlugin(base.Plugin):
|
|||
instance._thread.start()
|
||||
|
||||
def _instance_unapply_static(self, instance, full_rollback = False):
|
||||
super(self.__class__, self)._instance_unapply_static(instance, full_rollback)
|
||||
super(SchedulerPlugin, self)._instance_unapply_static(instance, full_rollback)
|
||||
ps = self.get_processes()
|
||||
if self._daemon and instance._runtime_tuning:
|
||||
instance._terminate.set()
|
||||
|
|
|
|||
|
|
@ -49,12 +49,12 @@ class ScriptPlugin(base.Plugin):
|
|||
return True
|
||||
|
||||
def _instance_apply_static(self, instance):
|
||||
super(self.__class__, self)._instance_apply_static(instance)
|
||||
super(ScriptPlugin, self)._instance_apply_static(instance)
|
||||
self._call_scripts(instance._scripts, ["start"])
|
||||
|
||||
def _instance_verify_static(self, instance, ignore_missing):
|
||||
ret = True
|
||||
if super(self.__class__, self)._instance_verify_static(instance, ignore_missing) == False:
|
||||
if super(ScriptPlugin, self)._instance_verify_static(instance, ignore_missing) == False:
|
||||
ret = False
|
||||
args = ["verify"]
|
||||
if ignore_missing:
|
||||
|
|
@ -71,4 +71,4 @@ class ScriptPlugin(base.Plugin):
|
|||
if full_rollback:
|
||||
args = args + ["full_rollback"]
|
||||
self._call_scripts(reversed(instance._scripts), args)
|
||||
super(self.__class__, self)._instance_unapply_static(instance, full_rollback)
|
||||
super(ScriptPlugin, self)._instance_unapply_static(instance, full_rollback)
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ class SCSIHostPlugin(hotplug.Plugin):
|
|||
"""
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(self.__class__, self).__init__(*args, **kwargs)
|
||||
super(SCSIHostPlugin, self).__init__(*args, **kwargs)
|
||||
|
||||
self._cmd = commands()
|
||||
|
||||
|
|
@ -43,13 +43,13 @@ class SCSIHostPlugin(hotplug.Plugin):
|
|||
|
||||
def _hardware_events_callback(self, event, device):
|
||||
if self._device_is_supported(device):
|
||||
super(self.__class__, self)._hardware_events_callback(event, device)
|
||||
super(SCSIHostPlugin, self)._hardware_events_callback(event, device)
|
||||
|
||||
def _added_device_apply_tuning(self, instance, device_name):
|
||||
super(self.__class__, self)._added_device_apply_tuning(instance, device_name)
|
||||
super(SCSIHostPlugin, self)._added_device_apply_tuning(instance, device_name)
|
||||
|
||||
def _removed_device_unapply_tuning(self, instance, device_name):
|
||||
super(self.__class__, self)._removed_device_unapply_tuning(instance, device_name)
|
||||
super(SCSIHostPlugin, self)._removed_device_unapply_tuning(instance, device_name)
|
||||
|
||||
@classmethod
|
||||
def _get_config_options(cls):
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ class SelinuxPlugin(base.Plugin):
|
|||
if self._selinux_path is None:
|
||||
raise exceptions.NotSupportedPluginException("SELinux is not enabled on your system or incompatible version is used.")
|
||||
self._cache_threshold_path = os.path.join(self._selinux_path, "avc", "cache_threshold")
|
||||
super(self.__class__, self).__init__(*args, **kwargs)
|
||||
super(SelinuxPlugin, self).__init__(*args, **kwargs)
|
||||
|
||||
@classmethod
|
||||
def _get_config_options(self):
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ class SysctlPlugin(base.Plugin):
|
|||
"""
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(self.__class__, self).__init__(*args, **kwargs)
|
||||
super(SysctlPlugin, self).__init__(*args, **kwargs)
|
||||
self._has_dynamic_options = True
|
||||
self._cmd = commands()
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ class SysfsPlugin(base.Plugin):
|
|||
# TODO: resolve possible conflicts with sysctl settings from other plugins
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(self.__class__, self).__init__(*args, **kwargs)
|
||||
super(SysfsPlugin, self).__init__(*args, **kwargs)
|
||||
self._has_dynamic_options = True
|
||||
self._cmd = commands()
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ class SystemdPlugin(base.Plugin):
|
|||
def __init__(self, *args, **kwargs):
|
||||
if not os.path.isfile(consts.SYSTEMD_SYSTEM_CONF_FILE):
|
||||
raise exceptions.NotSupportedPluginException("Required systemd '%s' configuration file not found, disabling plugin." % consts.SYSTEMD_SYSTEM_CONF_FILE)
|
||||
super(self.__class__, self).__init__(*args, **kwargs)
|
||||
super(SystemdPlugin, self).__init__(*args, **kwargs)
|
||||
self._cmd = commands()
|
||||
|
||||
def _instance_init(self, instance):
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ __all__ = ["Repository"]
|
|||
class Repository(PluginLoader):
|
||||
|
||||
def __init__(self, monitor_repository, storage_factory, hardware_inventory, device_matcher, device_matcher_udev, plugin_instance_factory, global_cfg, variables):
|
||||
super(self.__class__, self).__init__()
|
||||
super(Repository, self).__init__()
|
||||
self._plugins = set()
|
||||
self._monitor_repository = monitor_repository
|
||||
self._storage_factory = storage_factory
|
||||
|
|
|
|||
|
|
@ -14,10 +14,10 @@ class assertion(base.Function):
|
|||
"""
|
||||
def __init__(self):
|
||||
# 2 arguments
|
||||
super(self.__class__, self).__init__("assertion", 3)
|
||||
super(assertion, self).__init__("assertion", 3)
|
||||
|
||||
def execute(self, args):
|
||||
if not super(self.__class__, self).execute(args):
|
||||
if not super(assertion, self).execute(args):
|
||||
return None
|
||||
if args[1] != args[2]:
|
||||
log.error("assertion '%s' failed: '%s' != '%s'" % (args[0], args[1], args[2]))
|
||||
|
|
|
|||
|
|
@ -14,10 +14,10 @@ class assertion_non_equal(base.Function):
|
|||
"""
|
||||
def __init__(self):
|
||||
# 2 arguments
|
||||
super(self.__class__, self).__init__("assertion_non_equal", 3)
|
||||
super(assertion_non_equal, self).__init__("assertion_non_equal", 3)
|
||||
|
||||
def execute(self, args):
|
||||
if not super(self.__class__, self).execute(args):
|
||||
if not super(assertion_non_equal, self).execute(args):
|
||||
return None
|
||||
if args[1] == args[2]:
|
||||
log.error("assertion '%s' failed: '%s' == '%s'" % (args[0], args[1], args[2]))
|
||||
|
|
|
|||
|
|
@ -11,9 +11,9 @@ class cpulist2hex(base.Function):
|
|||
"""
|
||||
def __init__(self):
|
||||
# arbitrary number of arguments
|
||||
super(self.__class__, self).__init__("cpulist2hex", 0)
|
||||
super(cpulist2hex, self).__init__("cpulist2hex", 0)
|
||||
|
||||
def execute(self, args):
|
||||
if not super(self.__class__, self).execute(args):
|
||||
if not super(cpulist2hex, self).execute(args):
|
||||
return None
|
||||
return self._cmd.cpulist2hex(",,".join(args))
|
||||
|
|
|
|||
|
|
@ -11,10 +11,10 @@ class cpulist2hex_invert(base.Function):
|
|||
"""
|
||||
def __init__(self):
|
||||
# arbitrary number of arguments
|
||||
super(self.__class__, self).__init__("cpulist2hex_invert", 0)
|
||||
super(cpulist2hex_invert, self).__init__("cpulist2hex_invert", 0)
|
||||
|
||||
def execute(self, args):
|
||||
if not super(self.__class__, self).execute(args):
|
||||
if not super(cpulist2hex_invert, self).execute(args):
|
||||
return None
|
||||
# current implementation inverts the CPU list and then converts it to hexmask
|
||||
return self._cmd.cpulist2hex(",".join(str(v) for v in self._cmd.cpulist_invert(",,".join(args))))
|
||||
|
|
|
|||
|
|
@ -14,9 +14,9 @@ class cpulist_invert(base.Function):
|
|||
"""
|
||||
def __init__(self):
|
||||
# arbitrary number of arguments
|
||||
super(self.__class__, self).__init__("cpulist_invert", 0)
|
||||
super(cpulist_invert, self).__init__("cpulist_invert", 0)
|
||||
|
||||
def execute(self, args):
|
||||
if not super(self.__class__, self).execute(args):
|
||||
if not super(cpulist_invert, self).execute(args):
|
||||
return None
|
||||
return ",".join(str(v) for v in self._cmd.cpulist_invert(",,".join(args)))
|
||||
|
|
|
|||
|
|
@ -12,10 +12,10 @@ class cpulist_online(base.Function):
|
|||
"""
|
||||
def __init__(self):
|
||||
# arbitrary number of arguments
|
||||
super(self.__class__, self).__init__("cpulist_online", 0)
|
||||
super(cpulist_online, self).__init__("cpulist_online", 0)
|
||||
|
||||
def execute(self, args):
|
||||
if not super(self.__class__, self).execute(args):
|
||||
if not super(cpulist_online, self).execute(args):
|
||||
return None
|
||||
cpus = self._cmd.cpulist_unpack(",".join(args))
|
||||
online = self._cmd.cpulist_unpack(self._cmd.read_file("/sys/devices/system/cpu/online"))
|
||||
|
|
|
|||
|
|
@ -13,9 +13,9 @@ class cpulist_pack(base.Function):
|
|||
"""
|
||||
def __init__(self):
|
||||
# arbitrary number of arguments
|
||||
super(self.__class__, self).__init__("cpulist_pack", 0)
|
||||
super(cpulist_pack, self).__init__("cpulist_pack", 0)
|
||||
|
||||
def execute(self, args):
|
||||
if not super(self.__class__, self).execute(args):
|
||||
if not super(cpulist_pack, self).execute(args):
|
||||
return None
|
||||
return ",".join(str(v) for v in self._cmd.cpulist_pack(",,".join(args)))
|
||||
|
|
|
|||
|
|
@ -12,10 +12,10 @@ class cpulist_present(base.Function):
|
|||
"""
|
||||
def __init__(self):
|
||||
# arbitrary number of arguments
|
||||
super(self.__class__, self).__init__("cpulist_present", 0)
|
||||
super(cpulist_present, self).__init__("cpulist_present", 0)
|
||||
|
||||
def execute(self, args):
|
||||
if not super(self.__class__, self).execute(args):
|
||||
if not super(cpulist_present, self).execute(args):
|
||||
return None
|
||||
cpus = self._cmd.cpulist_unpack(",,".join(args))
|
||||
present = self._cmd.cpulist_unpack(self._cmd.read_file("/sys/devices/system/cpu/present"))
|
||||
|
|
|
|||
|
|
@ -11,9 +11,9 @@ class cpulist_unpack(base.Function):
|
|||
"""
|
||||
def __init__(self):
|
||||
# arbitrary number of arguments
|
||||
super(self.__class__, self).__init__("cpulist_unpack", 0)
|
||||
super(cpulist_unpack, self).__init__("cpulist_unpack", 0)
|
||||
|
||||
def execute(self, args):
|
||||
if not super(self.__class__, self).execute(args):
|
||||
if not super(cpulist_unpack, self).execute(args):
|
||||
return None
|
||||
return ",".join(str(v) for v in self._cmd.cpulist_unpack(",,".join(args)))
|
||||
|
|
|
|||
|
|
@ -9,10 +9,10 @@ class execute(base.Function):
|
|||
"""
|
||||
def __init__(self):
|
||||
# unlimited number of arguments, min 1 argument (the name of executable)
|
||||
super(self.__class__, self).__init__("exec", 0, 1)
|
||||
super(execute, self).__init__("exec", 0, 1)
|
||||
|
||||
def execute(self, args):
|
||||
if not super(self.__class__, self).execute(args):
|
||||
if not super(execute, self).execute(args):
|
||||
return None
|
||||
(ret, out) = self._cmd.execute(args)
|
||||
if ret == 0:
|
||||
|
|
|
|||
|
|
@ -11,9 +11,9 @@ class hex2cpulist(base.Function):
|
|||
"""
|
||||
def __init__(self):
|
||||
# one argument
|
||||
super(self.__class__, self).__init__("hex2cpulist", 1)
|
||||
super(hex2cpulist, self).__init__("hex2cpulist", 1)
|
||||
|
||||
def execute(self, args):
|
||||
if not super(self.__class__, self).execute(args):
|
||||
if not super(hex2cpulist, self).execute(args):
|
||||
return None
|
||||
return ",".join(str(v) for v in self._cmd.hex2cpulist(args[0]))
|
||||
|
|
|
|||
|
|
@ -9,10 +9,10 @@ class kb2s(base.Function):
|
|||
"""
|
||||
def __init__(self):
|
||||
# one argument
|
||||
super(self.__class__, self).__init__("kb2s", 1)
|
||||
super(kb2s, self).__init__("kb2s", 1)
|
||||
|
||||
def execute(self, args):
|
||||
if not super(self.__class__, self).execute(args):
|
||||
if not super(kb2s, self).execute(args):
|
||||
return None
|
||||
try:
|
||||
return str(int(args[0]) * 2)
|
||||
|
|
|
|||
|
|
@ -9,10 +9,10 @@ class s2kb(base.Function):
|
|||
"""
|
||||
def __init__(self):
|
||||
# one argument
|
||||
super(self.__class__, self).__init__("s2kb", 1)
|
||||
super(s2kb, self).__init__("s2kb", 1)
|
||||
|
||||
def execute(self, args):
|
||||
if not super(self.__class__, self).execute(args):
|
||||
if not super(s2kb, self).execute(args):
|
||||
return None
|
||||
try:
|
||||
return str(int(args[0]) / 2)
|
||||
|
|
|
|||
|
|
@ -9,9 +9,9 @@ class strip(base.Function):
|
|||
"""
|
||||
def __init__(self):
|
||||
# unlimited number of arguments, min 1 argument
|
||||
super(self.__class__, self).__init__("strip", 0, 1)
|
||||
super(strip, self).__init__("strip", 0, 1)
|
||||
|
||||
def execute(self, args):
|
||||
if not super(self.__class__, self).execute(args):
|
||||
if not super(strip, self).execute(args):
|
||||
return None
|
||||
return "".join(args).strip()
|
||||
|
|
|
|||
|
|
@ -11,10 +11,10 @@ class virt_check(base.Function):
|
|||
"""
|
||||
def __init__(self):
|
||||
# 2 arguments
|
||||
super(self.__class__, self).__init__("virt_check", 2)
|
||||
super(virt_check, self).__init__("virt_check", 2)
|
||||
|
||||
def execute(self, args):
|
||||
if not super(self.__class__, self).execute(args):
|
||||
if not super(virt_check, self).execute(args):
|
||||
return None
|
||||
(ret, out) = self._cmd.execute(["virt-what"])
|
||||
if ret == 0 and len(out) > 0:
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ log = tuned.logs.get()
|
|||
class Repository(PluginLoader):
|
||||
|
||||
def __init__(self):
|
||||
super(self.__class__, self).__init__()
|
||||
super(Repository, self).__init__()
|
||||
self._functions = {}
|
||||
|
||||
@property
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ class Manager(object):
|
|||
"""
|
||||
|
||||
def __init__(self, plugins_repository, monitors_repository, def_instance_priority):
|
||||
super(self.__class__, self).__init__()
|
||||
super(Manager, self).__init__()
|
||||
self._plugins_repository = plugins_repository
|
||||
self._monitors_repository = monitors_repository
|
||||
self._def_instance_priority = def_instance_priority
|
||||
|
|
|
|||
Loading…
Reference in a new issue