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
Continuation - adding request and rule contexts to rspecs currently being processed.
[sfa.git]
/
sfa
/
methods
/
get_registries.py
diff --git
a/sfa/methods/get_registries.py
b/sfa/methods/get_registries.py
index
e928aa2
..
a6f864b
100644
(file)
--- a/
sfa/methods/get_registries.py
+++ b/
sfa/methods/get_registries.py
@@
-23,13
+23,15
@@
class get_registries(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")),
+ Mixed(Parameter(str, "Request hash"),
+ Parameter(None, "Request hash not specified"))
]
returns = [Parameter(dict, "Registry interface information")]
]
returns = [Parameter(dict, "Registry 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')
registries = Registries(self.api)
hrn_list = []
self.api.auth.check(cred, 'list')
registries = Registries(self.api)
hrn_list = []
@@
-45,4
+47,3
@@
class get_registries(Method):
interfaces = [interface for interface in registries.interfaces if interface['hrn'] in hrn_list]
return interfaces
interfaces = [interface for interface in registries.interfaces if interface['hrn'] in hrn_list]
return interfaces
- return registries.interfaces