Fix a bug in DebianStrategy.get_permanent_hostname(). Use strip, not split!
This commit is contained in:
parent
bf21ba1521
commit
2bef08705f
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue