From 1b14bea56a6e85bc63ae97afbb0ed036228edc2e Mon Sep 17 00:00:00 2001 From: Jan Kaluza Date: Mon, 26 Mar 2012 13:05:58 +0200 Subject: [PATCH] Treat section name as plugin type --- tuned/profile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tuned/profile.py b/tuned/profile.py index df0760d..dcf06cf 100644 --- a/tuned/profile.py +++ b/tuned/profile.py @@ -189,8 +189,8 @@ class Profile(object): if section == "main": continue if not cfg.has_option(section, "type"): - log.error("No 'type' option for %s plugin" % (section)) - continue + log.info("No 'type' option for %s plugin, will treat '%s' as a plugin type" % (section, section)) + cfg.set(section, "type", section) cfg.set(section, "_load_path", os.path.dirname(config)) self._store_plugin_config(self._get_unique_name(section), dict(cfg.items(section)))