From 0d19f06b52ce187140c79db03efdb3cfb7c17a6d Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Thu, 7 Feb 2019 11:02:15 +0100 Subject: [PATCH] don't valid mandatory in metaconfig but in config --- tiramisu/value.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tiramisu/value.py b/tiramisu/value.py index 3851201..c89fc9e 100644 --- a/tiramisu/value.py +++ b/tiramisu/value.py @@ -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,