From a0da0afe00653c52d7529878537ae13124609b5b 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! --- library/system/hostname | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/system/hostname b/library/system/hostname index 17cdda8941..9836b98c71 100644 --- a/library/system/hostname +++ b/library/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: