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:
parent
fd33e6ae01
commit
497ca40492
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user