X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmethods%2FPerformOperationalAction.py;h=41bf58fd758f31cc1b768b7697ed2e1cd9dd77bd;hb=0eb8d56df7ee56f2ffebeef43c55cc7416fdf278;hp=a2635142717fd2df9f5786322f36d6bf30a56a6c;hpb=f863e88a906796b4ebf658946861cbf801eaf4be;p=sfa.git diff --git a/sfa/methods/PerformOperationalAction.py b/sfa/methods/PerformOperationalAction.py index a2635142..41bf58fd 100644 --- a/sfa/methods/PerformOperationalAction.py +++ b/sfa/methods/PerformOperationalAction.py @@ -34,9 +34,9 @@ class PerformOperationalAction(Method): (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, - speaking_for_hrn=speaking_for) + 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)