From 22e4957698b68e937d3b97f1ba766b18773b99ca Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Wed, 19 Jul 2017 13:32:26 -0400 Subject: [PATCH] remove duplicate hosts from host_filter --- awx/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/api/views.py b/awx/api/views.py index dfb57da156..e2be8f7c8e 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -1917,7 +1917,7 @@ class HostList(ListCreateAPIView): if filter_string: filter_qs = SmartFilter.query_from_string(filter_string) qs &= filter_qs - return qs + return qs.distinct() def list(self, *args, **kwargs): try: