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

pull/3940/head
Hiroaki Nakamura 11 years ago
parent 4f91238e34
commit a0da0afe00

@ -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:

Loading…
Cancel
Save