Fix reverify hosts to query for hosts the user has access to properly.
(As is it wasn't matching any hosts because it passed the login name in
to a query by user database id number).
Signed-off-by: Gregory Smith <gps@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@4029 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/frontend.py b/server/frontend.py
index f9658d8..85746bf 100644
--- a/server/frontend.py
+++ b/server/frontend.py
@@ -149,7 +149,7 @@
def reverify_hosts(self, hostnames=(), status=None, label=None):
query_args = dict(locked=False,
- aclgroup__users=self.user)
+ aclgroup__users__login=self.user)
if hostnames:
query_args['hostname__in'] = hostnames
if status: