Treat section name as plugin type
This commit is contained in:
parent
7446cc90fd
commit
1b14bea56a
1 changed files with 2 additions and 2 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue