Message ID | 20250328154712.8813-1-peter.marko@siemens.com |
---|---|
State | Accepted, archived |
Commit | 1508a97b175ccfc52a7ab64cbb4c9ce33d12bcb3 |
Headers | show |
Series | cve-update-nvd2-native: handle missing vulnStatus | expand |
diff --git a/meta/recipes-core/meta/cve-update-nvd2-native.bb b/meta/recipes-core/meta/cve-update-nvd2-native.bb index a68a8bb89f..b9c18bf6b6 100644 --- a/meta/recipes-core/meta/cve-update-nvd2-native.bb +++ b/meta/recipes-core/meta/cve-update-nvd2-native.bb @@ -336,7 +336,7 @@ def update_db(conn, elt): accessVector = None vectorString = None cveId = elt['cve']['id'] - if elt['cve']['vulnStatus'] == "Rejected": + if elt['cve'].get('vulnStatus') == "Rejected": c = conn.cursor() c.execute("delete from PRODUCTS where ID = ?;", [cveId]) c.execute("delete from NVD where ID = ?;", [cveId])