mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +00:00
Fix a new flake8 warning (line break before the binary operator)
This commit is contained in:
+2
-2
@@ -111,8 +111,8 @@ class Ha:
|
||||
|
||||
def follow(self, demote_reason, follow_reason, refresh=True, recovery=False):
|
||||
refresh and self.load_cluster_from_dcs()
|
||||
ret = demote_reason if (not recovery and self.state_handler.is_leader()
|
||||
or recovery and self.state_handler.role == 'master') else follow_reason
|
||||
ret = demote_reason if (not recovery and self.state_handler.is_leader() or
|
||||
recovery and self.state_handler.role == 'master') else follow_reason
|
||||
# determine the node to follow. If replicatefrom tag is set,
|
||||
# try to follow the node mentioned there, otherwise, follow the leader.
|
||||
if self.patroni.replicatefrom:
|
||||
|
||||
Reference in New Issue
Block a user