plugins: removed _load_path
This commit is contained in:
parent
23fb5038dc
commit
c9fc7b2410
2 changed files with 1 additions and 5 deletions
|
|
@ -16,10 +16,7 @@ class ScriptPlugin(base.Plugin):
|
|||
if self._options["script"] is None:
|
||||
return
|
||||
|
||||
if self._options["script"].startswith("/"):
|
||||
self._scripts.append(self._options["script"])
|
||||
else:
|
||||
self._scripts.append(os.path.join(self._options["_load_path"], self._options["script"]))
|
||||
self._scripts.append(self._options["script"])
|
||||
|
||||
@classmethod
|
||||
def tunable_devices(self):
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ class SysctlPlugin(base.Plugin):
|
|||
self._dynamic_tuning = False
|
||||
self._sysctl_original = {}
|
||||
self._sysctl = self._options
|
||||
del self._sysctl["_load_path"] # TODO: drop this ugly hack!
|
||||
|
||||
old_sysctl_options = self._storage.get("options", {})
|
||||
for key, value in old_sysctl_options.iteritems():
|
||||
|
|
|
|||
Loading…
Reference in a new issue