bug fix
[sfa.git] / sfa / methods / get_slices.py
index 603f643..4deae10 100644 (file)
@@ -20,13 +20,15 @@ class get_slices(Method):
     
     accepts = [
         Parameter(str, "Credential string"),
+        Mixed(Parameter(str, "Request hash"),
+              Parameter(None, "Request hash not specified"))
         ]
 
     returns = [Parameter(str, "Human readable slice name (hrn)")]
     
-    def call(self, cred):
-       
+    def call(self, cred, request_hash=None):
+        self.api.auth.authenticateCred(cred, [cred], request_hash) 
         self.api.auth.check(cred, 'listslices')
         slices = Slices(self.api)
-        slices.refresh()    
+        slices.refresh()
         return slices['hrn']