From 2bef08705f54d8256e5bde6b8f4887d54846135f Mon Sep 17 00:00:00 2001 From: Hiroaki Nakamura Date: Sun, 25 Aug 2013 07:46:23 +0900 Subject: [PATCH] Fix a bug in DebianStrategy.get_permanent_hostname(). Use strip, not split! --- system/hostname | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/hostname b/system/hostname index 17cdda89415..9836b98c71f 100644 --- a/system/hostname +++ b/system/hostname @@ -147,7 +147,7 @@ class DebianStrategy(GenericStrategy): try: f = open(self.HOSTNAME_FILE) try: - return f.read().split() + return f.read().strip() finally: f.close() except Exception, err: