fix KeyError
authorTony Mack <tmack@cs.princeton.edu>
Wed, 21 Apr 2010 00:48:20 +0000 (00:48 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Wed, 21 Apr 2010 00:48:20 +0000 (00:48 +0000)
sfa/trust/auth.py

index 50957ea..73fb592 100644 (file)
@@ -68,7 +68,7 @@ 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()]
+        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():
                 raise PermissionError("Target hrn: %s doesn't match specified hrn: %s " % \