feat(hub): report seats_taken in WebSocket license sync and telemetry
CI Test Suite / Run Component Tests & Pipeline Verification (push) Failing after 22s

This commit is contained in:
2026-09-25 21:30:45 +02:00
parent f4996a53cc
commit fac6ae8847
3 changed files with 18 additions and 2 deletions
+3
View File
@@ -662,6 +662,7 @@ def enroll_and_sync_license_ws(
hostname: str = "",
comm_cert_pem: Optional[str] = None,
master_root_ca_pem: Optional[str] = None,
seats_taken: Optional[int] = None,
timeout: int = 15,
verify_tls: bool = True
) -> Tuple[bool, str, Optional[Dict[str, Any]]]:
@@ -752,6 +753,8 @@ def enroll_and_sync_license_ws(
"server_fingerprint": server_fingerprint,
"hostname": hostname
}
if seats_taken is not None:
payload["seats_taken"] = seats_taken
ws.send(json.dumps(payload))
raw_reply = ws.recv(timeout=timeout)
reply = json.loads(raw_reply)