Merge pull request #495 from bcoca/hostname_gentoo_fix

fixed hostname for gentoo
This commit is contained in:
Brian Coca 2014-12-11 16:43:20 -05:00
commit e396611206

View file

@ -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='):