mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Fix a bug in DebianStrategy.get_permanent_hostname(). Use strip, not split!
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user