Skip to content

Commit

Permalink
fix(vmaas-sync): need to test cves inside the dict
Browse files Browse the repository at this point in the history
  • Loading branch information
jdobes authored and psegedy committed Jan 29, 2025
1 parent 24d17e0 commit 76289f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vmaas_sync/vmaas_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def sync_cve_md():
cves_in_db[cve_tuple[1]] = cve_tuple[0]

cve_pages = _fetch_vmaas_cves()
if not cve_pages:
if not cve_pages.get("cves", {}):
LOGGER.info("Fetched 0 CVEs from VMaaS, skipping CVE sync")
return False

Expand Down

0 comments on commit 76289f9

Please sign in to comment.