self.api.auth.verify_object_permission(hrn)
table = GeniTable()
# make sure the record exists
- records = table.find({'type': type, 'hrn': hrn})
+ records = table.findObjects({'type': type, 'hrn': hrn})
if not records:
raise RecordNotFound(hrn)
record = records[0]