summaryrefslogtreecommitdiffstats
path: root/pyanaconda/timezone.py
diff options
context:
space:
mode:
authorVratislav Podzimek <vpodzime@redhat.com>2013-02-15 12:41:44 +0100
committerVratislav Podzimek <vpodzime@redhat.com>2013-02-19 11:36:12 +0100
commit453b8fb5a2ea221f032f4b8e89466569c23f5eb5 (patch)
treee0fa759163d454739ea73a829336c69e50c1aae9 /pyanaconda/timezone.py
parent70e7941f4062ced0dc5d553148b70590e293cbdb (diff)
downloadanaconda-453b8fb5a2ea221f032f4b8e89466569c23f5eb5.tar.gz
anaconda-453b8fb5a2ea221f032f4b8e89466569c23f5eb5.tar.xz
anaconda-453b8fb5a2ea221f032f4b8e89466569c23f5eb5.zip
Refactor pieces of the Datetime spoke and move some parts to kickstart.py
The apply method should only set self.data, the execute method should do all necessary runtime changes. The code for starting chronyd service and adding/removing it to/from the list of installed packages and enabled services should be placed somewhere where it can be used by text mode as well. Also use NTP_* constants instead of "chrony" and "chronyd" magic strings.
Diffstat (limited to 'pyanaconda/timezone.py')
-rw-r--r--pyanaconda/timezone.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pyanaconda/timezone.py b/pyanaconda/timezone.py
index ff9e3f377..2e436c272 100644
--- a/pyanaconda/timezone.py
+++ b/pyanaconda/timezone.py
@@ -44,6 +44,9 @@ ETC_ZONES = ['GMT+1', 'GMT+2', 'GMT+3', 'GMT+4', 'GMT+5', 'GMT+6', 'GMT+7',
'GMT-8', 'GMT-9', 'GMT-10', 'GMT-11', 'GMT-12', 'GMT-13',
'GMT-14', 'UTC', 'GMT']
+NTP_PACKAGE = "chrony"
+NTP_SERVICE = "chronyd"
+
class TimezoneConfigError(Exception):
"""Exception class for timezone configuration related problems"""
pass