From 700e9d9a5ff1e3ad34ca7c92744a0e66e7b1a05a Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Fri, 6 Aug 2010 21:39:54 +0000 Subject: [PATCH] rename variable --- sfa/trust/auth.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sfa/trust/auth.py b/sfa/trust/auth.py index 30370510..f8d09b46 100644 --- a/sfa/trust/auth.py +++ b/sfa/trust/auth.py @@ -87,9 +87,10 @@ class Auth: # This check does not apply to trusted peers trusted_peers = [gid.get_hrn() for gid in self.trusted_cert_list] if hrn and self.client_gid.get_hrn() not in trusted_peers: - if not hrn == self.object_gid.get_hrn(): + target_hrn = self.object_gid.get_hrn() + if not hrn == target_hrn: raise PermissionError("Target hrn: %s doesn't match specified hrn: %s " % \ - (self.object_gid.get_hrn(), hrn) ) + (target_hrn, hrn) ) return True def check_ticket(self, ticket): -- 2.43.0