Fix a new flake8 warning (line break before the binary operator)

This commit is contained in:
Oleksii Kliukin
2016-01-26 15:40:53 +01:00
parent 15bec1e28c
commit 34437550d4
+2 -2
View File
@@ -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: