match get_or_create_private_config API (closes ticket:2775)

This commit is contained in:
meejah 2016-04-12 12:48:53 -06:00
parent 4a25573e2d
commit 308bb8c41f

View File

@ -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