mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-10 10:01:48 -05:00
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