Calculation to non-leader option with leader parameter is now possible
This commit is contained in:
parent
0167f4e2d0
commit
da946baba6
1 changed files with 2 additions and 2 deletions
|
@ -76,6 +76,7 @@ class Values:
|
||||||
setting_properties,
|
setting_properties,
|
||||||
option_bag.properties,
|
option_bag.properties,
|
||||||
'value')
|
'value')
|
||||||
|
# FIXME hu? validated or is_cached?
|
||||||
if not validated:
|
if not validated:
|
||||||
# no cached value so get value
|
# no cached value so get value
|
||||||
value = await self.getvalue(option_bag)
|
value = await self.getvalue(option_bag)
|
||||||
|
@ -169,8 +170,7 @@ class Values:
|
||||||
value,
|
value,
|
||||||
reset_cache=True):
|
reset_cache=True):
|
||||||
if isinstance(value, Calculation):
|
if isinstance(value, Calculation):
|
||||||
value = await value.execute(option_bag,
|
value = await value.execute(option_bag)
|
||||||
leadership_must_have_index=True)
|
|
||||||
elif isinstance(value, (list, tuple)):
|
elif isinstance(value, (list, tuple)):
|
||||||
value = await self._do_value_list(value, option_bag)
|
value = await self._do_value_list(value, option_bag)
|
||||||
if reset_cache:
|
if reset_cache:
|
||||||
|
|
Loading…
Reference in a new issue