make sure to use the type specified by the user when resolving the record
authorTony Mack <tmack@cs.princeton.edu>
Tue, 14 Jul 2009 20:29:20 +0000 (20:29 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Tue, 14 Jul 2009 20:29:20 +0000 (20:29 +0000)
sfa/methods/get_credential.py

index 1c7d271..4e7a790 100644 (file)
@@ -43,7 +43,7 @@ class get_credential(Method):
             auth_hrn = hrn
         auth_info = self.api.auth.get_auth_info(auth_hrn)
         table = self.api.auth.get_auth_table(auth_hrn)
-        records = table.resolve('*', hrn)
+        records = table.resolve(type, hrn)
         if not records:
             raise RecordNotFound(hrn)
         record = records[0]