-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This is against devel, it was causing me to be unable to log into the webui.

- --
John Eckersberg
Production Operations
Red Hat, Inc.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkjAhCQACgkQdxt4pd4ztYscVACgkJVytd/16TKNuB1qahImqaIB
u5cAninidytJsalYhe9NRjQEzG6wjDTM
=U1hM
-----END PGP SIGNATURE-----
>From 1344b3133621f109411d067a541d8ea4b59812c4 Mon Sep 17 00:00:00 2001
From: John Eckersberg <[EMAIL PROTECTED]>
Date: Thu, 4 Sep 2008 20:52:15 -0400
Subject: [PATCH] Fix bug introduced in a6dd9a57 where variable 'rc' is 
referenced before assignment

---
 cobbler/api.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cobbler/api.py b/cobbler/api.py
index 01658a6..817877a 100644
--- a/cobbler/api.py
+++ b/cobbler/api.py
@@ -487,16 +487,16 @@ class BootAPI:
         """
         (Remote) access control.
         """
-        self.log("authenticate",[user,rc])
         rc = self.authn.authenticate(self,user,password)
+        self.log("authenticate",[user,rc])
         return rc 
 
     def authorize(self,user,resource,arg1=None,arg2=None):
         """
         (Remote) access control.
         """
-        self.log("authorize",[user,resource,arg1,arg2,rc],debug=True)
         rc = 
self.authz.authorize(self,user,resource,arg1,arg2,acl_engine=self.acl_engine)
+        self.log("authorize",[user,resource,arg1,arg2,rc],debug=True)
         return rc
 
     def build_iso(self,iso=None,profiles=None,systems=None,tempdir=None):
-- 
1.5.5.1

_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to