1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

timezone: Fix TypeError

closes #3337
This commit is contained in:
Shinichi TAMURA 2016-12-01 21:47:55 +09:00 committed by Matt Clay
parent 75563d5325
commit 335a28443d

View file

@ -310,8 +310,8 @@ class NosystemdTimezone(Timezone):
# Debian/Ubuntu # Debian/Ubuntu
self.update_timezone = self.module.get_bin_path('dpkg-reconfigure', required=True) self.update_timezone = self.module.get_bin_path('dpkg-reconfigure', required=True)
self.update_timezone += ' --frontend noninteractive tzdata' self.update_timezone += ' --frontend noninteractive tzdata'
self.conf_files['name'] = '/etc/timezone', self.conf_files['name'] = '/etc/timezone'
self.conf_files['hwclock'] = '/etc/default/rcS', self.conf_files['hwclock'] = '/etc/default/rcS'
self.regexps['name'] = re.compile(r'^([^\s]+)', re.MULTILINE) self.regexps['name'] = re.compile(r'^([^\s]+)', re.MULTILINE)
self.tzline_format = '%s\n' self.tzline_format = '%s\n'
else: else: