Read YAML config after config.val is ready
This means we can (at least somewhat) validate aliases in configtypes.Command.
This commit is contained in:
parent
0ed0a6db57
commit
e7ba56cb2c
@ -531,7 +531,6 @@ def init(parent=None):
|
|||||||
|
|
||||||
config = Config(parent)
|
config = Config(parent)
|
||||||
config.read_configdata()
|
config.read_configdata()
|
||||||
config.read_yaml()
|
|
||||||
objreg.register('config', config)
|
objreg.register('config', config)
|
||||||
|
|
||||||
config_commands = ConfigCommands(config)
|
config_commands = ConfigCommands(config)
|
||||||
@ -544,5 +543,6 @@ def init(parent=None):
|
|||||||
|
|
||||||
for cf in _change_filters:
|
for cf in _change_filters:
|
||||||
cf.validate()
|
cf.validate()
|
||||||
|
config.read_yaml()
|
||||||
|
|
||||||
configfiles.init(instance)
|
configfiles.init(instance)
|
||||||
|
Loading…
Reference in New Issue
Block a user