Qualys sync: filtre SRV au lieu de server (matche OS-WIN-SRV/OS-LIN-SRV DYN SANEF v3)
This commit is contained in:
parent
8e085564ac
commit
7eb56bc9cd
@ -587,7 +587,8 @@ def _refresh_all_agents_impl(db):
|
||||
stats["msg"] = f"Annulé après {stats['pages']} pages: {stats['created']} créés, {stats['updated']} mis à jour"
|
||||
return stats
|
||||
stats["pages"] += 1
|
||||
criteria = [{"field": "tagName", "operator": "CONTAINS", "value": "server"}]
|
||||
# CONTAINS SRV matche OS-WIN-SRV DYN / OS-LIN-SRV DYN (nomenclature SANEF v3)
|
||||
criteria = [{"field": "tagName", "operator": "CONTAINS", "value": "SRV"}]
|
||||
if last_id:
|
||||
criteria.append({"field": "id", "operator": "GREATER", "value": str(last_id)})
|
||||
payload = {"ServiceRequest": {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user