change context when reset cache in metaconfig
This commit is contained in:
parent
0b703b40b2
commit
08bae1d131
|
@ -809,9 +809,16 @@ class KernelGroupConfig(_CommonConfig):
|
|||
resetted_opts = []
|
||||
if isinstance(self, KernelMixConfig):
|
||||
super().cfgimpl_reset_cache(option_bag,
|
||||
resetted_opts=copy(resetted_opts))
|
||||
resetted_opts=copy(resetted_opts))
|
||||
for child in self._impl_children:
|
||||
child.cfgimpl_reset_cache(option_bag,
|
||||
if option_bag is not None:
|
||||
coption_bag = option_bag.copy()
|
||||
cconfig_bag = coption_bag.config_bag.copy()
|
||||
cconfig_bag.context = child
|
||||
coption_bag.config_bag = cconfig_bag
|
||||
else:
|
||||
coption_bag = None
|
||||
child.cfgimpl_reset_cache(coption_bag,
|
||||
resetted_opts=copy(resetted_opts))
|
||||
|
||||
def set_value(self,
|
||||
|
|
Loading…
Reference in New Issue