Skip to content

Commit 3a2c253

Browse files
Fix regressions from syslog per-region enhancement (#14)
1 parent 87021fa commit 3a2c253

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "sophos-firewall-audit"
3-
version = "1.0.18"
3+
version = "1.0.19"
44
description = "Sophos Firewall Audit"
55
authors = ["Matt Mullen <matt.mullen@sophos.com>"]
66
readme = "README.md"

sophos_firewall_audit/rules/syslog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def eval_syslog(fw_obj: SophosFirewall,
5959
settings_dict[key] = {}
6060
settings_dict[key]["Name"] = container_name
6161
settings_dict[key]["Expected"] = settings_container[key]
62-
if key == "Format":
62+
if key == "Format" and container_name in actual_settings:
6363
if actual_settings[container_name][key] == "3":
6464
actual_settings[container_name][key] = "Standard syslog"
6565
settings_dict[key]["Actual"] = actual_settings[container_name][key] if container_name in actual_settings else f"{container_name} not configured!"

0 commit comments

Comments
 (0)