mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 11:00:03 -03:30
fix smart inventory duplicate hosts
This commit is contained in:
parent
a8a45fca84
commit
9eecb24c32
@ -78,8 +78,7 @@ class HostManager(models.Manager):
|
||||
self.core_filters = {}
|
||||
|
||||
qs = qs & q
|
||||
unique_by_name = qs.order_by('name', 'pk').distinct('name')
|
||||
return qs.filter(pk__in=unique_by_name)
|
||||
return qs.order_by('name', 'pk').distinct('name')
|
||||
return qs
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user