mirror of
https://github.com/ansible/awx.git
synced 2026-02-15 10:10:01 -03:30
Update HostManager to return only a single matching hostname for SmartInventory filter
This commit is contained in:
@@ -42,7 +42,7 @@ class HostManager(models.Manager):
|
||||
# injected by the related object mapper.
|
||||
self.core_filters = {}
|
||||
qs = qs & q
|
||||
return qs.distinct()
|
||||
return qs.order_by('pk').distinct('name')
|
||||
return qs
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user