cleanup commands before commands application
This commit is contained in:
parent
49a994edde
commit
f4850a7e42
2 changed files with 1 additions and 3 deletions
|
|
@ -115,9 +115,6 @@ class Plugin(object):
|
|||
|
||||
new_value = self._options[command_name]
|
||||
|
||||
# FIXME: should we revert old settings before applying the new one?
|
||||
# can we call cleanup_commands() instead
|
||||
|
||||
# TODO: refactor
|
||||
if command["per_device"]:
|
||||
for device in self._devices:
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ class PluginRepository(tuned.patterns.Singleton):
|
|||
continue
|
||||
|
||||
log.debug("running static tuning for plugin %s" % plugin)
|
||||
plugin.cleanup_commands()
|
||||
plugin.execute_commands()
|
||||
|
||||
def delete(self, plugin):
|
||||
|
|
|
|||
Loading…
Reference in a new issue