mirror of
https://github.com/ansible/awx.git
synced 2026-02-15 18:20:00 -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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user