Skip to content

Commit f614bdd

Browse files
authored
Merge pull request #4 from gruffatremi/main
Added "support" for debian 11 CiS file
2 parents 4b930a6 + 069a089 commit f614bdd

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

cis_pdf_parser.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ def main():
6969
logger.info("*** Document found name: {} ***".format(CISName))
7070
if "Red Hat Enterprise Linux 7" in CISName:
7171
pattern = "(\d+(?:\.\d.\d*)+)(.*?)(\(Automated\)|\(Manual\))"
72+
elif "Debian Linux 11" in CISName:
73+
pattern = "(\d+(?:\.\d.\d*)+)(.*?)(\(Automated\)|\(Manual\))"
7274
elif "Microsoft Windows Server 2019" in CISName:
7375
pattern = "(\d+(?:\.\d+)+)\s\(((L[12])|(NG))\)(.*?)(\(Automated\)|\(Manual\))"
7476
elif "Microsoft Windows 10 Enterprise" in CISName:
@@ -202,8 +204,8 @@ def main():
202204
rat_count,
203205
acnt,
204206
rem_count,
205-
defval_count,
206-
cis_count,
207+
#defval_count,
208+
#cis_count,
207209
]
208210
logging.debug(row_count)
209211
if row_count.count(row_count[0]) == len(row_count):

0 commit comments

Comments
 (0)