From: Tony Mack Date: Tue, 14 Jul 2009 20:29:20 +0000 (+0000) Subject: make sure to use the type specified by the user when resolving the record X-Git-Tag: sfa-0.9-0@14641~54 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=c8f009d194c30c59e5c534fa9e6e51ce13cd2ae9;p=sfa.git make sure to use the type specified by the user when resolving the record --- diff --git a/sfa/methods/get_credential.py b/sfa/methods/get_credential.py index 1c7d2710..4e7a7903 100644 --- a/sfa/methods/get_credential.py +++ b/sfa/methods/get_credential.py @@ -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]