Add the missing newline to the string compare

This commit is contained in:
Joshua Boniface 2019-08-04 17:00:33 -04:00
parent d0d5ab4425
commit e2ae58b62c
1 changed files with 2 additions and 2 deletions

View File

@ -306,7 +306,7 @@ 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: