mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 23:07:42 -02:30
Added variable data field and resource on inventory. Updated inventory script to output inventory variables for the 'all' group.
This commit is contained in:
@@ -847,6 +847,13 @@ class InventoryRootGroupsList(BaseSubList):
|
||||
all_ids = base.values_list('id', flat=True)
|
||||
return base.exclude(parents__pk__in = all_ids)
|
||||
|
||||
class InventoryVariableDetail(BaseDetail):
|
||||
|
||||
model = Inventory
|
||||
serializer_class = InventoryVariableDataSerializer
|
||||
permission_classes = (CustomRbac,)
|
||||
is_variable_data = True # Special flag for RBAC
|
||||
|
||||
class HostsVariableDetail(BaseDetail):
|
||||
|
||||
model = Host
|
||||
|
||||
Reference in New Issue
Block a user