mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 02:50:02 -03:30
Fix AC-981, mark last_job* fields as read only on the host serializer so activity stream will ignore them when processing events
This commit is contained in:
parent
bb0a2887d5
commit
867c22c36c
@ -442,6 +442,10 @@ class InventorySerializer(BaseSerializerWithVariables):
|
||||
|
||||
class HostSerializer(BaseSerializerWithVariables):
|
||||
|
||||
# Allow the serializer to treat these fields as read-only
|
||||
last_job = serializers.Field()
|
||||
last_job_host_summary = serializers.Field()
|
||||
|
||||
class Meta:
|
||||
model = Host
|
||||
fields = BASE_FIELDS + ('inventory', 'enabled', 'instance_id', 'variables',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user