Skip to content

Commit

Permalink
fix: Snmpv3 user lookup (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
mamullen13316 authored Nov 25, 2024
1 parent e706997 commit 2ff8772
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "sophos-firewall-audit"
version = "1.0.9"
version = "1.0.10"
description = "Sophos Firewall Audit"
authors = ["Matt Mullen <[email protected]>"]
readme = "README.md"
Expand Down
4 changes: 2 additions & 2 deletions sophos_firewall_audit/rules/snmpv3.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def eval_snmpv3(fw_obj: SophosFirewall,

for i in range(1,3):
try:
result = fw_obj.get_snmpv3_user()
result = fw_obj.get_tag_with_filter(xml_tag="SNMPv3User", key="Username", value=expected["Username"])
except SophosFirewallZeroRecords:
result = None
break
Expand All @@ -47,7 +47,7 @@ def eval_snmpv3(fw_obj: SophosFirewall,
if result:
actual = result["Response"]["SNMPv3User"]
else:
actual = {}
actual = {"Username": "User not found"}

result_dict = {
"snmpv3": {
Expand Down

0 comments on commit 2ff8772

Please sign in to comment.