Fix creation of the autotest_system user

Signed-off-by: James Ren <[email protected]>

--- autotest/frontend/afe/models.py     2010-01-11 14:03:08.000000000 -0800
+++ autotest/frontend/afe/models.py     2010-01-12 10:35:15.000000000 -0800
@@ -167,7 +167,7 @@
     def current_user(cls):
         user = thread_local.get_user()
         if user is None:
-            user = cls.objects.get_or_create(login=cls.AUTOTEST_SYSTEM)
+            user, _ = cls.objects.get_or_create(login=cls.AUTOTEST_SYSTEM)
             user.access_level = cls.ACCESS_ROOT
             user.save()
         return user
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to