2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-26 19:40:12 +00:00

Do not abort connecting process on bad cert

The target may be non-viable, but don't let that ruin the party
for everyone.  Let it keep going as if the system were down.
This commit is contained in:
Jarrod Johnson 2018-07-18 14:58:16 -04:00
parent fd33e6ae01
commit 497ca40492

View File

@ -87,7 +87,8 @@ def connect_to_leader(cert=None, name=None, leader=None):
leader=keydata['leader'])
if 'txcount' in keydata:
return become_leader(remote)
raise Exception(keydata['error'])
print(keydata['error'])
return False
if follower is not None:
follower.kill()
cfm.stop_following()