From 6d56767454153f3e5a1c12410f291981bc279fb1 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 --- lib/ansible/modules/system/hostname.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/system/hostname.py b/lib/ansible/modules/system/hostname.py index 95b28dbf69d..48311f07a96 100644 --- a/lib/ansible/modules/system/hostname.py +++ b/lib/ansible/modules/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='):