zookeeper charm: support relation changes
Closes
@@ -196,6 +196,12 @@ def check_cluster_departed(zkpeer, zkpeer_departed):
check_cluster(zkpeer)
+@when('zookeeper.started', 'leadership.is_leader', 'zkpeer.changed')
+def check_cluster_changed(zkpeer):
+ check_cluster(zkpeer)
+ zkpeer.dismiss_changed()
+
+
@when('leadership.changed.restart_queue', 'zkpeer.joined')
def restart_for_quorum(zkpeer):
'''
