X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmethods%2FStatus.py;h=dd15f5dfad83b1463108d151318e8af54fcc8b77;hb=3e6097e2d50ff322b45f53fcb22d07fc16adbdb6;hp=76e967d272974a79b9c01bedd3cbf66c64824920;hpb=17223926c16a4f9779078236c6460ab9477f9d72;p=sfa.git diff --git a/sfa/methods/Status.py b/sfa/methods/Status.py index 76e967d2..dd15f5df 100644 --- a/sfa/methods/Status.py +++ b/sfa/methods/Status.py @@ -3,26 +3,27 @@ from sfa.util.method import Method from sfa.storage.parameter import Parameter, Mixed + class Status(Method): """ Get the status of a sliver - + @param slice_urn (string) URN of slice to allocate to - + """ interfaces = ['aggregate', 'slicemgr', 'component'] accepts = [ Parameter(type([str]), "Slice or sliver URNs"), Parameter(type([dict]), "credentials"), Parameter(dict, "Options") - ] + ] returns = Parameter(dict, "Status details") def call(self, xrns, creds, options): - valid_creds = self.api.auth.checkCredentials(creds, 'sliverstatus', xrns, - check_sliver_callback = self.api.driver.check_sliver_credentials, - options=options) + valid_creds = self.api.auth.checkCredentialsSpeaksFor(creds, 'sliverstatus', xrns, + check_sliver_callback=self.api.driver.check_sliver_credentials, + options=options) - self.api.logger.info("interface: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, xrns, self.name)) + self.api.logger.info("interface: %s\ttarget-hrn: %s\tmethod-name: %s" % + (self.api.interface, xrns, self.name)) return self.api.manager.Status(self.api, xrns, creds, options) -