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