summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2023-07-17 09:57:54 -0500
committerJohn Estabrook <jestabro@vyos.io>2023-07-17 09:57:54 -0500
commitb2ffdb756f797787a639343bebb02e327e54483c (patch)
treebedbc8600e1b08e3093824e56f7098feeb266195 /src
parent751d326c7769ac18db69de8f2be39587148be209 (diff)
downloadvyos-1x-b2ffdb756f797787a639343bebb02e327e54483c.tar.gz
vyos-1x-b2ffdb756f797787a639343bebb02e327e54483c.zip
syslog: T2778: fix dict index
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/system-syslog.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/system-syslog.py b/src/conf_mode/system-syslog.py
index b9a03ac1f..e05e7e29c 100755
--- a/src/conf_mode/system-syslog.py
+++ b/src/conf_mode/system-syslog.py
@@ -83,8 +83,8 @@ def get_config(config=None):
if 'facility' in tmp_config:
default_values_facility = defaults(base + [syslog_type, 'facility'])
for facility in tmp_config['facility']:
- syslog[tmp_config][tmp]['facility'][facility] = dict_merge(default_values_facility,
- syslog[tmp_config][tmp]['facility'][facility])
+ syslog[syslog_type][tmp]['facility'][facility] = dict_merge(default_values_facility,
+ syslog[syslog_type][tmp]['facility'][facility])
return syslog