X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmethods%2Fget_credential.py;h=f6f34d65b22592c52c67f9c2972a5f8b23614ce3;hb=a5a52b745b71f227bfbf720fb941fbfc6653a3a4;hp=3e11f88e709090bb6ccc5e0ac10cac0388ce6ece;hpb=110b5e2b36f4def2cb7b49c886367b89b3b04652;p=sfa.git diff --git a/sfa/methods/get_credential.py b/sfa/methods/get_credential.py index 3e11f88e..f6f34d65 100644 --- a/sfa/methods/get_credential.py +++ b/sfa/methods/get_credential.py @@ -108,7 +108,7 @@ class get_credential(Method): # find a record that matches record = None table = GeniTable() - records = table.find({'type': type, 'hrn': hrn}) + records = table.findObjects({'type': type, 'hrn': hrn}) if not records: raise RecordNotFound(hrn) record = records[0]