Continuation - adding request and rule contexts to rspecs currently being processed.
[sfa.git] / sfa / methods / get_registries.py
index e928aa2..a6f864b 100644 (file)
@@ -23,13 +23,15 @@ class get_registries(Method):
         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")]
     
-    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 = []
@@ -45,4 +47,3 @@ class get_registries(Method):
             interfaces = [interface for interface in registries.interfaces if interface['hrn'] in hrn_list]
 
         return interfaces
-        return registries.interfaces