from sfa.util.misc import *
from sfa.util.method import Method
from sfa.util.parameter import Parameter, Mixed
-from sfa.util.auth import Auth
-from sfa.util.slices import Slices
+from sfa.trust.auth import Auth
+from sfa.plc.slices import Slices
class get_slices(Method):
"""
accepts = [
Parameter(str, "Credential string"),
+ Parameter(str, "Request hash")
]
returns = [Parameter(str, "Human readable slice name (hrn)")]
- def call(self, cred):
-
+ def call(self, cred, request_hash):
+ 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']