doesn't check follower requirement with an other follower or a leader if idx is None (fixes #3)

This commit is contained in:
2019-03-02 19:43:51 +01:00
parent d25edd7dd7
commit 7873910322
5 changed files with 103 additions and 4 deletions

View File

@ -523,6 +523,10 @@ class Settings(object):
is_indexed = False
if option.impl_is_follower():
idx = option_bag.index
if idx is None:
continue
elif option.impl_is_leader() and option_bag.index is None:
continue
elif option.impl_is_multi() and option_bag.index is not None:
is_indexed = True
config_bag = option_bag.config_bag.copy()