getting record objects
[sfa.git] / sfa / methods / get_credential.py
index 3e11f88..f6f34d6 100644 (file)
@@ -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]