X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmethods%2FSliverStatus.py;h=deb79983ba74cfeaf86e13171d81482285c2e5fa;hb=04272d0520e5a90b2457420d163eb545e57ffc36;hp=2f4bc0c725ae3cb9e0205a3a5c8d67fd67ba92ba;hpb=89d0fa4efde57cb62445af75c16bdc42bc03693a;p=sfa.git diff --git a/sfa/methods/SliverStatus.py b/sfa/methods/SliverStatus.py index 2f4bc0c7..deb79983 100644 --- a/sfa/methods/SliverStatus.py +++ b/sfa/methods/SliverStatus.py @@ -1,6 +1,7 @@ from sfa.util.xrn import urn_to_hrn from sfa.util.method import Method -from sfa.util.parameter import Parameter, Mixed + +from sfa.storage.parameter import Parameter, Mixed class SliverStatus(Method): """ @@ -14,17 +15,17 @@ class SliverStatus(Method): Parameter(str, "Slice URN"), Mixed(Parameter(str, "Credential string"), Parameter(type([str]), "List of credentials")), - Parameter(str, "call_id"), + Parameter(dict, "Options") ] returns = Parameter(dict, "Status details") - def call(self, slice_xrn, creds, call_id=""): + def call(self, slice_xrn, creds, options): hrn, type = urn_to_hrn(slice_xrn) valid_creds = self.api.auth.checkCredentials(creds, 'sliverstatus', hrn) self.api.logger.info("interface: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, hrn, self.name)) - status = self.api.manager.SliverStatus(self.api, hrn, valid_creds, call_id) + status = self.api.manager.SliverStatus(self.api, hrn, valid_creds, options) return status