X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmethods%2Fget_gids.py;h=b4912f8a3c7e40277a3abe5b0fb1c489f5302754;hb=acae426433020998d0d45ed25584ebed0591d036;hp=119b78343d1a4568fd358d8dc62d23056946cb52;hpb=69cca9d43487b57e00012b570006406d60359245;p=sfa.git diff --git a/sfa/methods/get_gids.py b/sfa/methods/get_gids.py index 119b7834..b4912f8a 100644 --- a/sfa/methods/get_gids.py +++ b/sfa/methods/get_gids.py @@ -29,15 +29,13 @@ class get_gids(Method): accepts = [ Parameter(str, "Certificate string"), Mixed(Parameter(str, "Human readable name (hrn)"), - Parameter(type([str]), "List of Human readable names (hrn)")), - Mixed(Parameter(str, "Request hash"), - Parameter(None, "Request hash not specified")) + Parameter(type([str]), "List of Human readable names (hrn)")) ] returns = [Parameter(dict, "Dictionary of gids keyed on hrn")] - def call(self, cred, hrns, request_hash=None): - self.api.auth.authenticateCred(cred, [cred, hrns], request_hash) + def call(self, cred, hrns): + # validate the credential self.api.auth.check(cred, 'getgids') table = GeniTable() if not isinstance(hrns, list):