Skip to content

Commit c0edde7

Browse files
author
imi
committed
adding test for CVE/Cisco_XR rule
1 parent 06f6dc3 commit c0edde7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CVE/Cisco_XR/CVE-2023-44487.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ def rule_cve_2023_44487(configuration, commands, device):
1010
import re
1111
pattern = r"Version\s([0-9.]+)"
1212
match = re.search(pattern, str(commands.version))
13-
s_version = match.group(1)
13+
s_version = match.group(1) if match else '0.0.0'
1414
version = tuple(map(int, s_version.split('.')))
1515
assert version > (7, 11, 2)

0 commit comments

Comments
 (0)