Commit a0da0afe by Hiroaki Nakamura

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

parent 4f91238e
...@@ -147,7 +147,7 @@ class DebianStrategy(GenericStrategy): ...@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment