Creating a new job with a one-time host that has been previously used
now works as expected. The job will be successfully created.
Risk: low
Visibility: medium (UI bug fix)
Signed-off-by: James Ren <jamesren@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@1930 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/frontend/afe/models.py b/frontend/afe/models.py
index 589e7b8..d02e290 100644
--- a/frontend/afe/models.py
+++ b/frontend/afe/models.py
@@ -151,6 +151,7 @@
'hostname' : '%s already exists!' % hostname
})
host.clean_object()
+ AclGroup.objects.get(name='Everyone').hosts.add(host)
host.status = Host.Status.READY
host.save()
return host