Probe each indexed Fortinet document once
This commit is contained in:
1 parent
20035f3eb0
commit
788d82956b
1 file changed
+4
-1
@@ -412,9 +412,12 @@ def _checks(group: Group, asset: Asset | None = None) -> set[Check]:
|
||||
planned.add(Check(doc.source, ident))
|
||||
elif doc.source in {'siemens', 'msrc', 'industrial', 'fortinet'}:
|
||||
if doc.source in {'siemens', 'industrial', 'fortinet'}:
|
||||
# The indexed URL replaces the id-only probe, in either letter case.
|
||||
# One probe per document: drop the id-only form in either letter case
|
||||
# and any earlier URL, which may belong to a stale cached copy.
|
||||
for candidate in {ident, ident.upper(), ident.lower()}:
|
||||
planned.discard(Check(doc.source, candidate))
|
||||
planned = {check for check in planned
|
||||
if not (check.url and check.source == doc.source and check.native_id == ident)}
|
||||
planned.add(Check(doc.source, ident, doc.url))
|
||||
return planned
|
||||
|
||||
|
||||
Reference in new issue
Block a user