Update ping endpoint to use last_seen

Update ping endpoint to use last_seen, instead of `modified` on
instances `heartbeat`.

See: https://github.com/ansible/awx/issues/11523
This commit is contained in:
nixocio 2022-01-13 16:45:17 -05:00
parent d33a0d5dde
commit 3d45f31536

View File

@ -156,7 +156,7 @@ class ApiV2PingView(APIView):
node=instance.hostname,
node_type=instance.node_type,
uuid=instance.uuid,
heartbeat=instance.modified,
heartbeat=instance.last_seen,
capacity=instance.capacity,
version=instance.version,
)