mirror of
https://github.com/ansible/awx.git
synced 2026-03-27 22:05:07 -02:30
AC-585 Added totals fields to inventory group tree.
This commit is contained in:
@@ -588,7 +588,8 @@ class GroupTreeSerializer(GroupSerializer):
|
|||||||
class Meta:
|
class Meta:
|
||||||
model = Group
|
model = Group
|
||||||
fields = BASE_FIELDS + ('inventory', 'variables', 'has_active_failures',
|
fields = BASE_FIELDS + ('inventory', 'variables', 'has_active_failures',
|
||||||
'hosts_with_active_failures',
|
'total_hosts', 'hosts_with_active_failures',
|
||||||
|
'total_groups', 'groups_with_active_failures',
|
||||||
'has_inventory_sources', 'children')
|
'has_inventory_sources', 'children')
|
||||||
|
|
||||||
def get_children(self, obj):
|
def get_children(self, obj):
|
||||||
|
|||||||
Reference in New Issue
Block a user