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):
try:
f = open(self.HOSTNAME_FILE)
try:
return f.read().split()
return f.read().strip()
finally:
f.close()
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