From 7cfdf11bf26f38b4becb808580ebb25b6a98e6dc Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 19 Jan 2021 17:34:28 -0500 Subject: [PATCH] Fix collective name return It inadvertently would return None when rereading from file. --- 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 3626b4d0..38a6e0bf 100644 --- a/confluent_server/confluent/collective/manager.py +++ b/confluent_server/confluent/collective/manager.py @@ -204,7 +204,7 @@ def get_myname(): with open('/etc/confluent/cfg/myname', 'r') as f: mycachedname[0] = f.read().strip() mycachedname[1] = time.time() - return + return mycachedname[0] except IOError: myname = socket.gethostname() with open('/etc/confluent/cfg/myname', 'w') as f: