From 335a28443d0efa8391f4b63213517b8325759281 Mon Sep 17 00:00:00 2001 From: Shinichi TAMURA Date: Thu, 1 Dec 2016 21:47:55 +0900 Subject: [PATCH] timezone: Fix TypeError closes #3337 --- lib/ansible/modules/extras/system/timezone.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/extras/system/timezone.py b/lib/ansible/modules/extras/system/timezone.py index a6b74c570f5..3c920c4bff5 100644 --- a/lib/ansible/modules/extras/system/timezone.py +++ b/lib/ansible/modules/extras/system/timezone.py @@ -310,8 +310,8 @@ class NosystemdTimezone(Timezone): # Debian/Ubuntu self.update_timezone = self.module.get_bin_path('dpkg-reconfigure', required=True) self.update_timezone += ' --frontend noninteractive tzdata' - self.conf_files['name'] = '/etc/timezone', - self.conf_files['hwclock'] = '/etc/default/rcS', + self.conf_files['name'] = '/etc/timezone' + self.conf_files['hwclock'] = '/etc/default/rcS' self.regexps['name'] = re.compile(r'^([^\s]+)', re.MULTILINE) self.tzline_format = '%s\n' else: