mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 04:10:44 -03:30
expose insights_system_id via api
* insights_system_id is read-only. Only modified via the fact gathering code path.
This commit is contained in:
parent
eb27233e5c
commit
ac534abe24
@ -1175,8 +1175,8 @@ class HostSerializer(BaseSerializerWithVariables):
|
||||
model = Host
|
||||
fields = ('*', 'inventory', 'enabled', 'instance_id', 'variables',
|
||||
'has_active_failures', 'has_inventory_sources', 'last_job',
|
||||
'last_job_host_summary')
|
||||
read_only_fields = ('last_job', 'last_job_host_summary')
|
||||
'last_job_host_summary', 'insights_system_id')
|
||||
read_only_fields = ('last_job', 'last_job_host_summary', 'insights_system_id',)
|
||||
|
||||
def build_relational_field(self, field_name, relation_info):
|
||||
field_class, field_kwargs = super(HostSerializer, self).build_relational_field(field_name, relation_info)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user