X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmethods%2Fget_aggregates.py;h=57ef2590599f7a3215a2d58aff4a0667677c4f0e;hb=62792bcff03b7c63c3140066563a1530aa497d48;hp=7cf8d79a3e038033d993b1ea95d26ec408c54dc4;hpb=49d6c2d9783c1037564f60430c5341bd7385fb1f;p=sfa.git diff --git a/sfa/methods/get_aggregates.py b/sfa/methods/get_aggregates.py index 7cf8d79a..57ef2590 100644 --- a/sfa/methods/get_aggregates.py +++ b/sfa/methods/get_aggregates.py @@ -23,13 +23,14 @@ class get_aggregates(Method): Parameter(str, "Credential string"), Mixed(Parameter(str, "Human readable name (hrn)"), - Parameter(None, "hrn not specified")) + Parameter(None, "hrn not specified")), + Parameter(str, "Request hash") ] returns = [Parameter(dict, "Aggregate interface information")] - def call(self, cred, hrn = None): - + def call(self, cred, hrn = None, request_hash=None): + self.api.auth.authenticateCred(cred, [cred, hrn], request_hash) self.api.auth.check(cred, 'list') aggregates = Aggregates(self.api) hrn_list = []