Skip to content

Commit

Permalink
Update almalinux importer
Browse files Browse the repository at this point in the history
Signed-off-by: ambuj <kulshreshthaak.12@gmail.com>
  • Loading branch information
ambuj-1211 committed Jan 6, 2025
1 parent 1c10ad9 commit 6300da1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vulnerabilities/pipelines/almalinux_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def clone(self):

def advisories_count(self):
vuln_directory = Path(self.vcs_response.dest_dir) / "advisories"
return sum(1 for _ in vuln_directory.rglob("*.json"))
return len(list(vuln_directory.rglob("*.json")))

def collect_advisories(self) -> Iterable[AdvisoryData]:
base_directory = Path(self.vcs_response.dest_dir)
Expand Down

0 comments on commit 6300da1

Please sign in to comment.