api: valid properties in get_option

This commit is contained in:
2018-04-05 21:13:24 +02:00
parent cf3e8cded9
commit 73d27af971
2 changed files with 96 additions and 89 deletions

View File

@ -90,6 +90,10 @@ class CommonTiramisu(object):
self.config_bag,
self.subconfig)
self.config_bag.option = option
if self.config_bag.setting_properties:
self.config_bag.config.cfgimpl_get_settings().validate_properties(self.path,
self.index,
self.config_bag)
if self.index is not None and option.impl_is_master_slaves('slave') and \
self.index >= self.subconfig.cfgimpl_get_length():
raise SlaveError(_('index "{}" is higher than the master length "{}" '