mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 09:57:35 -02:30
Provide access to scan job templates from the inventory related fields
This commit is contained in:
@@ -745,6 +745,7 @@ class InventorySerializer(BaseSerializerWithVariables):
|
||||
tree = reverse('api:inventory_tree_view', args=(obj.pk,)),
|
||||
inventory_sources = reverse('api:inventory_inventory_sources_list', args=(obj.pk,)),
|
||||
activity_stream = reverse('api:inventory_activity_stream_list', args=(obj.pk,)),
|
||||
scan_job_templates = reverse('api:inventory_scan_job_template_list', args=(obj.pk,)),
|
||||
))
|
||||
if obj.organization and obj.organization.active:
|
||||
res['organization'] = reverse('api:organization_detail', args=(obj.organization.pk,))
|
||||
|
||||
Reference in New Issue
Block a user