From d736d09e428d4a20ec3bfb2295f7f7417e6392bb Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Sat, 12 Mar 2022 07:58:51 +0100 Subject: [PATCH] index needed only for slave --- tiramisu/autolib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tiramisu/autolib.py b/tiramisu/autolib.py index a6c27ec..aa563fc 100644 --- a/tiramisu/autolib.py +++ b/tiramisu/autolib.py @@ -341,7 +341,7 @@ async def manager_callback(callbk: Param, return option.impl_getsuffix() if isinstance(callbk, ParamSelfOption): - if leadership_must_have_index and option.impl_get_leadership() and index is None: + if leadership_must_have_index and option.impl_is_follower() and index is None: raise Break() value = await calc_self(callbk, option, index, orig_value, config_bag) if not callbk.todict: @@ -382,7 +382,7 @@ async def manager_callback(callbk: Param, callbk_option = callbk_option.to_dynoption(rootpath, suffix, subdyn) - if leadership_must_have_index and callbk_option.impl_get_leadership() and index is None: + if leadership_must_have_index and callbk_option.impl_is_follower() and index is None: raise Break() if config_bag is undefined: return undefined