From f8986f061760ca49e1ec0801ff12846cebac1c67 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Fri, 1 Jul 2022 11:25:54 +0000 Subject: event-handler: T4501: Fix for syslog-identifier In dictionary we get "syslog-identifier" with dash But we try to parse option with underscore "syslog_identifier" Fix it --- src/system/vyos-event-handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/system') diff --git a/src/system/vyos-event-handler.py b/src/system/vyos-event-handler.py index 691f674b2..507fdc652 100755 --- a/src/system/vyos-event-handler.py +++ b/src/system/vyos-event-handler.py @@ -69,7 +69,7 @@ class Analyzer: 'pattern_raw': pattern_raw, 'syslog_id': - dict_search('filter.syslog_identifier', event_config), + dict_search('filter.syslog-identifier', event_config), 'pattern_script': { 'path': script, 'environment': environment -- cgit v1.2.3