X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmethods%2FPerformOperationalAction.py;h=41bf58fd758f31cc1b768b7697ed2e1cd9dd77bd;hb=63bb6c04ee9f566071c3211a76e22559595d42e6;hp=01d853d40a1ee9af023b1e59f997679e7c8851c8;hpb=96df4d7d52e14ea85055813121a07bb3e798d98e;p=sfa.git diff --git a/sfa/methods/PerformOperationalAction.py b/sfa/methods/PerformOperationalAction.py index 01d853d4..41bf58fd 100644 --- a/sfa/methods/PerformOperationalAction.py +++ b/sfa/methods/PerformOperationalAction.py @@ -31,9 +31,12 @@ class PerformOperationalAction(Method): def call(self, xrns, creds, action, options): self.api.logger.info("interface: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, xrns, self.name)) + (speaking_for, _) = urn_to_hrn(options.get('geni_speaking_for')) + # Find the valid credentials - valid_creds = self.api.auth.checkCredentials(creds, 'createsliver', xrns, - check_sliver_callback = self.api.driver.check_sliver_credentials) + valid_creds = self.api.auth.checkCredentialsSpeaksFor(creds, 'createsliver', xrns, + check_sliver_callback = self.api.driver.check_sliver_credentials, + options=options) origin_hrn = Credential(cred=valid_creds[0]).get_gid_caller().get_hrn() self.api.logger.info("interface: %s\tcaller-hrn: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, origin_hrn, xrns, self.name)) result = self.api.manager.PerformOperationalAction(self.api, xrns, creds, action, options)