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: