chore(support): silence bandit B104 on net.info ip redaction

The "0.0.0.0" written into the support bundle is a JSON sentinel that
  scrubs the printer's local IP plus the gateway/peers it sees — not a
  socket bind address. Annotate inline so bandit stops flagging it.
This commit is contained in:
maziggy
2026-06-14 10:22:21 +02:00
parent f8d6d8fd69
commit f84756f8d4
+1 -1
View File
@@ -1190,7 +1190,7 @@ def _redact_raw_push_status(raw: dict) -> dict:
info_list = net.get("info")
if isinstance(info_list, list):
net["info"] = [
({**entry, "ip": "0.0.0.0"} if isinstance(entry, dict) and "ip" in entry else entry)
({**entry, "ip": "0.0.0.0"} if isinstance(entry, dict) and "ip" in entry else entry) # nosec B104 - redaction sentinel, not a bind address
for entry in info_list
]