mirror of
https://github.com/ansible/awx.git
synced 2026-05-14 21:07:39 -02:30
Added inventory tree view for AC-360.
This commit is contained in:
@@ -216,6 +216,11 @@ class Inventory(CommonModel):
|
||||
self.has_active_failures = has_active_failures
|
||||
self.save()
|
||||
|
||||
@property
|
||||
def root_groups(self):
|
||||
group_pks = self.groups.values_list('pk', flat=True)
|
||||
return self.groups.exclude(parents__pk__in=group_pks).distinct()
|
||||
|
||||
class Host(CommonModelNameNotUnique):
|
||||
'''
|
||||
A managed node
|
||||
|
||||
Reference in New Issue
Block a user