mirror of
https://github.com/ansible/awx.git
synced 2026-03-20 18:37:39 -02:30
fix smart inventory duplicate hosts
This commit is contained in:
@@ -78,8 +78,7 @@ class HostManager(models.Manager):
|
|||||||
self.core_filters = {}
|
self.core_filters = {}
|
||||||
|
|
||||||
qs = qs & q
|
qs = qs & q
|
||||||
unique_by_name = qs.order_by('name', 'pk').distinct('name')
|
return qs.order_by('name', 'pk').distinct('name')
|
||||||
return qs.filter(pk__in=unique_by_name)
|
|
||||||
return qs
|
return qs
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user