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":
|
if section == "main":
|
||||||
continue
|
continue
|
||||||
if not cfg.has_option(section, "type"):
|
if not cfg.has_option(section, "type"):
|
||||||
log.error("No 'type' option for %s plugin" % (section))
|
log.info("No 'type' option for %s plugin, will treat '%s' as a plugin type" % (section, section))
|
||||||
continue
|
cfg.set(section, "type", section)
|
||||||
cfg.set(section, "_load_path", os.path.dirname(config))
|
cfg.set(section, "_load_path", os.path.dirname(config))
|
||||||
|
|
||||||
self._store_plugin_config(self._get_unique_name(section), dict(cfg.items(section)))
|
self._store_plugin_config(self._get_unique_name(section), dict(cfg.items(section)))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue