Fix a bug in DebianStrategy.get_permanent_hostname(). Use strip, not split!

This commit is contained in:
Hiroaki Nakamura 2013-08-25 07:46:23 +09:00
parent bf21ba1521
commit 2bef08705f

View file

@ -147,7 +147,7 @@ class DebianStrategy(GenericStrategy):
try: try:
f = open(self.HOSTNAME_FILE) f = open(self.HOSTNAME_FILE)
try: try:
return f.read().split() return f.read().strip()
finally: finally:
f.close() f.close()
except Exception, err: except Exception, err: