mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fixed hostname for gentoo
This commit is contained in:
parent
411e4cfae8
commit
6d56767454
1 changed files with 1 additions and 1 deletions
|
@ -313,7 +313,7 @@ class OpenRCStrategy(GenericStrategy):
|
|||
def set_permanent_hostname(self, name):
|
||||
try:
|
||||
f = open(self.HOSTNAME_FILE, 'r')
|
||||
lines = (x.strip() for x in f)
|
||||
lines = [x.strip() for x in f]
|
||||
|
||||
for i, line in enumerate(lines):
|
||||
if line.startswith('hostname='):
|
||||
|
|
Loading…
Reference in a new issue