X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmethods%2FAllocate.py;h=f255232a7126b76a79bd8b67fb0b27b39fd93e65;hb=17223926c16a4f9779078236c6460ab9477f9d72;hp=ff543b7315e563c71cc8def39ae610c3b42628fa;hpb=8c430290eb4735d91d5c312de217e7813654537e;p=sfa.git diff --git a/sfa/methods/Allocate.py b/sfa/methods/Allocate.py index ff543b73..f255232a 100644 --- a/sfa/methods/Allocate.py +++ b/sfa/methods/Allocate.py @@ -37,10 +37,9 @@ class Allocate(Method): def call(self, xrn, creds, rspec, options): xrn = Xrn(xrn, type='slice') self.api.logger.info("interface: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, xrn.get_hrn(), self.name)) - (speaking_for, _) = urn_to_hrn(options.get('geni_speaking_for')) # Find the valid credentials - valid_creds = self.api.auth.checkCredentials(creds, 'createsliver', xrn.get_hrn(), speaking_for_hrn=speaking_for) + valid_creds = self.api.auth.checkCredentials(creds, 'createsliver', xrn.get_hrn(), options=options) # use the expiration from the first valid credential to determine when # the slivers should expire. expiration = datetime_to_string(Credential(cred=valid_creds[0]).expiration)