Skip to contentSkip to conversation

call login_unconditionally with 'self.'

PATCH Applied Stefan Berger 2 participants 2 messages Nov 28, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 call login_unconditionally with 'self.'

A trivial fix. login_unconditionally needs to be called with self.login_unconditionally to avoid "global name 'login_unconditionally' is not defined"

xen-unstable.hg/tools/python/xen/xend/XendAuthSessions.py +1 -1
Index: root/xen-unstable.hg/tools/python/xen/xend/XendAuthSessions.py
===================================================================
@@ -55,7 +55,7 @@ class XendAuthSessions:
         @return: Session UUID
         """
         if self.is_authorized(username, password):
-            return login_unconditionally(username)
+            return self.login_unconditionally(username)
 
         raise XendError("Login failed")
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Applied
#1 lore raw
Quoted 5 lines · Stefan Berger

A trivial fix. login_unconditionally needs to be called with self.login_unconditionally to avoid "global name 'login_unconditionally' is not defined"

D'oh!

Applied, thanks Stefan.

Ewan.