From: Tony Mack Date: Fri, 20 Nov 2009 19:22:29 +0000 (+0000) Subject: change the format of the 'data' to something that nm is used to X-Git-Tag: sfa-0.9-7~308 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=304c11023bdc95ec0b484420edf89e82221a76ce;p=sfa.git change the format of the 'data' to something that nm is used to --- diff --git a/sfa/methods/get_ticket.py b/sfa/methods/get_ticket.py index 7b6b3e6a..75e36b25 100644 --- a/sfa/methods/get_ticket.py +++ b/sfa/methods/get_ticket.py @@ -83,9 +83,13 @@ class get_ticket(Method): # get initscripts initscripts = None - sliver['initscripts'] = initscripts - - new_ticket.set_attributes(sliver) + data = { + 'timestamp': int(time.time()), + 'initscripts': initscripts, + 'slivers': sliver + } + + new_ticket.set_attributes(attributes) new_ticket.set_rspec(rspec) new_ticket.set_parent(self.api.auth.hierarchy.get_auth_ticket(auth_hrn))