mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-21 04:10:23 -07:00
Fix a bug in DebianStrategy.get_permanent_hostname(). Use strip, not split!
This commit is contained in:
parent
4f91238e34
commit
a0da0afe00
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue