Add the missing newline to the string compare
This commit is contained in:
parent
d0d5ab4425
commit
e2ae58b62c
|
@ -306,9 +306,9 @@ class NodeInstance(object):
|
||||||
if stdout:
|
if stdout:
|
||||||
self.logger.out('Successfully switched Patroni leader\n{}'.format(stdout), state='o')
|
self.logger.out('Successfully switched Patroni leader\n{}'.format(stdout), state='o')
|
||||||
break
|
break
|
||||||
elif stderr == "Error: Switchover target and source are the same.":
|
elif stderr == "Error: Switchover target and source are the same.\n":
|
||||||
self.logger.out('Failed to switch Patroni leader to ourselves; this is fine\n{}'.format(stderr), state='w')
|
self.logger.out('Failed to switch Patroni leader to ourselves; this is fine\n{}'.format(stderr), state='w')
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
self.logger.out('Failed to switch Patroni leader; retrying\n{}'.format(stderr), state='e')
|
self.logger.out('Failed to switch Patroni leader; retrying\n{}'.format(stderr), state='e')
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
|
|
Loading…
Reference in New Issue