accepts = [
Parameter(str, "Certificate string"),
- Mixed(Paramter(str, "Human readable name (hrn)"),
+ Mixed(Parameter(str, "Human readable name (hrn)"),
Parameter([str], "List of Human readable names (hrn)")),
Mixed(Parameter(str, "Request hash"),
Parameter(None, "Request hash not specified"))
self.api.auth.authenticateCred(cred, [cred, hrns], request_hash)
self.api.auth.check(cred, 'getgids')
table = GeniTable()
- records = table.find({'hrn': [hrns]}, columns=['hrn','type','gid'])
+ if not isinstance(hrns, list):
+ hrns = [hrns]
+ records = table.find({'hrn': hrns}, columns=['hrn','type','gid'])
return records