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