Skip to content

Commit

Permalink
Add empty "Group Name" field and an explanatory comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dav3r committed Dec 9, 2021
1 parent f537891 commit 668f082
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/clamav_report/clamav_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ def create_host_row(host_results):
mtime = stat_task["stat"].get("mtime", 0) # 0 if it doesn't exist
mtimes[path] = timestamp_to_string(mtime)
row = {key: None for key in FIELDS}
# "Group Name" is intentionally left blank so that it can be manually
# edited after the output CSV has been generated.
row["Group Name"] = ""
row["System Name"] = facts["ansible_hostname"]
row["Last Update Time"] = mtimes[CLAMAV_DB_FILENAME]
row["Last Scan Time"] = mtimes[LAST_SCAN_LOG_FILENAME]
Expand Down

0 comments on commit 668f082

Please sign in to comment.