From ba139b145b8f1665b9dc184fc7c72087a4a12e8e Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 11 Dec 2014 09:05:27 -0500 Subject: [PATCH] fixed hostname for gentoo --- system/hostname.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/hostname.py b/system/hostname.py index 95b28dbf69d..48311f07a96 100644 --- a/system/hostname.py +++ b/system/hostname.py @@ -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='):