From a131427de305f91194e84b6c0b7e99bc529766c7 Mon Sep 17 00:00:00 2001 From: Anil-Kumar Vengalil Date: Tue, 15 Dec 2009 16:28:08 +0000 Subject: [PATCH] importing the required module --- sfa/methods/get_ticket.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sfa/methods/get_ticket.py b/sfa/methods/get_ticket.py index 5121e83f..188029db 100644 --- a/sfa/methods/get_ticket.py +++ b/sfa/methods/get_ticket.py @@ -11,6 +11,7 @@ from sfa.util.genitable import GeniTable from sfa.util.sfaticket import SfaTicket from sfa.plc.slices import Slices from sfatables.runtime import SFATablesRules +from sfa.util.rspec import * class get_ticket(Method): """ @@ -65,10 +66,9 @@ class get_ticket(Method): #incoming_rules.set_slice(hrn) # This is a temporary kludge. Eventually, we'd like to fetch the context requested by the match/target contexts = incoming_rules.contexts caller_hrn = Credential(string=cred).get_gid_caller().get_hrn() - request_context = rspec_manager.fetch_context(hrn, caller_hrn, contexts) + request_context = manager.fetch_context(hrn, caller_hrn, contexts) incoming_rules.set_context(request_context) rspec = incoming_rules.apply(rspec) - # remove nodes that are not available at this interface from the rspec valid_rspec = RSpec(xml=manager.get_rspec(self.api)) valid_nodes = valid_rspec.getDictsByTagName('NodeSpec') -- 2.43.0