OptionsSetting ctor should have empty options when using options_factory

This commit is contained in:
jesopo 2019-06-29 23:23:57 +01:00
parent a64d577644
commit cb07a5d708

View file

@ -13,7 +13,7 @@ class Module(ModuleManager.BaseModule):
self.exports.add("shorturl-s-bitly", self._bitly)
setting = utils.OptionsSetting("url-shortener",
setting = utils.OptionsSetting("url-shortener", [],
"Set URL shortener service",
options_factory=self._shorturl_options_factory)
self.exports.add("serverset", setting)