From 704aaeecf906d06357310bc3f46c115262b626f3 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 11 Jul 2018 09:36:51 -0400 Subject: [PATCH] Tolerate newline in myname vim is quite insistent on adding a newline, tolerate that. --- confluent_server/confluent/collective/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/collective/manager.py b/confluent_server/confluent/collective/manager.py index fd7401f4..50e07fe5 100644 --- a/confluent_server/confluent/collective/manager.py +++ b/confluent_server/confluent/collective/manager.py @@ -147,7 +147,7 @@ def connect_to_collective(cert, member): def get_myname(): try: with open('/etc/confluent/cfg/myname', 'r') as f: - return f.read() + return f.read().strip() except IOError: myname = socket.gethostname() with open('/etc/confluent/cfg/myname', 'w') as f: