From 308bb8c41fef9bf56363ac9acaf4e42026002959 Mon Sep 17 00:00:00 2001 From: meejah Date: Tue, 12 Apr 2016 12:48:53 -0600 Subject: [PATCH] match get_or_create_private_config API (closes ticket:2775) --- src/allmydata/node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/allmydata/node.py b/src/allmydata/node.py index 8189e0ecc..d9aa62fef 100644 --- a/src/allmydata/node.py +++ b/src/allmydata/node.py @@ -235,7 +235,7 @@ class Node(service.MultiService): """ privname = os.path.join(self.basedir, "private", name) try: - return fileutil.read(privname) + return fileutil.read(privname).strip() except EnvironmentError: if os.path.exists(privname): raise