diff --git a/confluent_server/confluent/collective/manager.py b/confluent_server/confluent/collective/manager.py index 335dae9a..002eb94b 100644 --- a/confluent_server/confluent/collective/manager.py +++ b/confluent_server/confluent/collective/manager.py @@ -33,6 +33,7 @@ currentleader = None def connect_to_leader(cert=None, name=None, leader=None): + global currentleader if leader is None: leader = currentleader remote = socket.create_connection((leader, 13001))