feat(hub): report seats_taken in WebSocket license sync and telemetry
CI Test Suite / Run Component Tests & Pipeline Verification (push) Failing after 22s
CI Test Suite / Run Component Tests & Pipeline Verification (push) Failing after 22s
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user