don't valid mandatory in metaconfig but in config

This commit is contained in:
Emmanuel Garette 2019-02-07 11:02:15 +01:00
parent 7c214bb8ee
commit 0d19f06b52

View file

@ -160,7 +160,7 @@ class Values(object):
moption_bag = self._get_meta(option_bag)
if moption_bag:
# retrieved value from meta config
return moption_bag.config_bag.context.cfgimpl_get_values().get_cached_value(option_bag)
return moption_bag.config_bag.context.cfgimpl_get_values().get_cached_value(moption_bag)
if opt.impl_has_callback():
# if value has callback, calculate value
@ -325,6 +325,7 @@ class Values(object):
doption_bag = option_bag.copy()
config_bag = option_bag.config_bag.copy()
config_bag.context = meta
config_bag.remove_validation()
doption_bag.config_bag = config_bag
doption_bag.properties = frozenset()
meta_option_bag = meta.cfgimpl_get_values().getowner(doption_bag,