git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add request_hash argumet to more method calls
[sfa.git]
/
sfa
/
methods
/
get_aggregates.py
diff --git
a/sfa/methods/get_aggregates.py
b/sfa/methods/get_aggregates.py
index
7cf8d79
..
57ef259
100644
(file)
--- 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(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")]
]
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 = []
self.api.auth.check(cred, 'list')
aggregates = Aggregates(self.api)
hrn_list = []