1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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 4f91238e34
commit a0da0afe00

View file

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