refactor: expose device registration status
This commit is contained in:
parent
9c773e7b9b
commit
02e2b9de94
6
app.py
6
app.py
@ -320,7 +320,11 @@ def activate(payload: ActivationRequest, request: Request):
|
|||||||
"id": device["id"],
|
"id": device["id"],
|
||||||
"fingerprint": device["device_fingerprint"],
|
"fingerprint": device["device_fingerprint"],
|
||||||
"hostname": device["hostname"],
|
"hostname": device["hostname"],
|
||||||
"created": device_created,
|
"registration_status": (
|
||||||
|
"registered"
|
||||||
|
if device_created
|
||||||
|
else "existing"
|
||||||
|
),
|
||||||
"hardware_snapshot_id": hardware_snapshot_id,
|
"hardware_snapshot_id": hardware_snapshot_id,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user