1
0
Fork 0

Treat section name as plugin type

This commit is contained in:
Jan Kaluza 2012-03-26 13:05:58 +02:00
parent 7446cc90fd
commit 1b14bea56a

View file

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