Calculation to non-leader option with leader parameter is now possible

This commit is contained in:
Emmanuel Garette 2021-03-18 08:52:22 +01:00
parent 0167f4e2d0
commit da946baba6

View file

@ -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: