1
0
Fork 0

cleanup commands before commands application

This commit is contained in:
Jan Vcelak 2012-05-11 10:34:47 +02:00
parent 49a994edde
commit f4850a7e42
2 changed files with 1 additions and 3 deletions

View file

@ -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:

View file

@ -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):