fixed hostname for gentoo
This commit is contained in:
parent
95aa8481b2
commit
ba139b145b
1 changed files with 1 additions and 1 deletions
|
@ -313,7 +313,7 @@ class OpenRCStrategy(GenericStrategy):
|
||||||
def set_permanent_hostname(self, name):
|
def set_permanent_hostname(self, name):
|
||||||
try:
|
try:
|
||||||
f = open(self.HOSTNAME_FILE, 'r')
|
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):
|
for i, line in enumerate(lines):
|
||||||
if line.startswith('hostname='):
|
if line.startswith('hostname='):
|
||||||
|
|
Loading…
Reference in a new issue