summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/vyos/kea.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/kea.py b/python/vyos/kea.py
index 5fe070c54..74ffa3fb1 100644
--- a/python/vyos/kea.py
+++ b/python/vyos/kea.py
@@ -144,7 +144,7 @@ def kea_parse_options(config):
if 'time_zone' in config:
with open('/usr/share/zoneinfo/' + config['time_zone'], 'rb') as f:
- tz_string = f.read().split(b'\n')[-2].decode('utf-8')
+ tz_string = f.read().split(b'\n')[-2].decode('utf-8').replace(',', '\\,')
options.append({'name': 'pcode', 'data': tz_string})
options.append({'name': 'tcode', 'data': config['time_zone']})