From: Stefan Berger Subject: [PATCH][XenD] call login_unconditionally with 'self.' Date: Tue, 28 Nov 2006 13:38:09 -0500 Message-ID: <1164739089.16694.2.camel@lt2.watson.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-C0YDVVviZ1QxE7P+P1Ta" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xen-devel Cc: ewan@xensource.com List-Id: xen-devel@lists.xenproject.org --=-C0YDVVviZ1QxE7P+P1Ta Content-Type: text/plain Content-Transfer-Encoding: 7bit A trivial fix. login_unconditionally needs to be called with self.login_unconditionally to avoid "global name 'login_unconditionally' is not defined" Signed-off-by: Stefan Berger --=-C0YDVVviZ1QxE7P+P1Ta Content-Disposition: attachment; filename=xen-api-auth-fix.diff Content-Type: text/x-patch; name=xen-api-auth-fix.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Index: root/xen-unstable.hg/tools/python/xen/xend/XendAuthSessions.py =================================================================== --- root.orig/xen-unstable.hg/tools/python/xen/xend/XendAuthSessions.py +++ 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") --=-C0YDVVviZ1QxE7P+P1Ta Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-C0YDVVviZ1QxE7P+P1Ta--