From f7f3e755036ec661df2be3e728ac7a84096d87ca Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 20 Apr 2010 18:04:44 +0000 Subject: [PATCH] fix name error --- sfa/trust/auth.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sfa/trust/auth.py b/sfa/trust/auth.py index 2663417c..50957ea3 100644 --- a/sfa/trust/auth.py +++ b/sfa/trust/auth.py @@ -69,10 +69,10 @@ class Auth: # Make sure the credential's target matches the specified hrn. # This check does not apply to trusted peers trusted_peers = [gid.get_hrn() for gid in self.trusted_cert_list.get_list()] - if hrn and client_gid.get_hrn() not in trusted_peers: - if not hrn == object_gid.get_hrn(): + if hrn and self.client_gid.get_hrn() not in trusted_peers: + if not hrn == self.object_gid.get_hrn(): raise PermissionError("Target hrn: %s doesn't match specified hrn: %s " % \ - (object_gid.get_hrn(), hrn) ) + (self.object_gid.get_hrn(), hrn) ) return True def check_ticket(self, ticket): -- 2.43.0