add request_hash argumet to more method calls
[sfa.git] / sfa / methods / get_aggregates.py
index 7cf8d79..57ef259 100644 (file)
@@ -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 = []