fixed hostname for gentoo

reviewable/pr18780/r1
Brian Coca 11 years ago
parent 95aa8481b2
commit ba139b145b

@ -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…
Cancel
Save