git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e9535e3
)
- include initscripts
author
Tony Mack
<tmack@cs.princeton.edu>
Mon, 30 Apr 2007 17:52:41 +0000
(17:52 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Mon, 30 Apr 2007 17:52:41 +0000
(17:52 +0000)
PLC/Methods/GetSliceTicket.py
patch
|
blob
|
history
diff --git
a/PLC/Methods/GetSliceTicket.py
b/PLC/Methods/GetSliceTicket.py
index
822d003
..
cd73f7b
100644
(file)
--- a/
PLC/Methods/GetSliceTicket.py
+++ b/
PLC/Methods/GetSliceTicket.py
@@
-6,6
+6,7
@@
from PLC.Parameter import Parameter, Mixed
from PLC.Slices import Slice, Slices
from PLC.Auth import Auth
from PLC.GPG import gpg_sign, gpg_verify
from PLC.Slices import Slice, Slices
from PLC.Auth import Auth
from PLC.GPG import gpg_sign, gpg_verify
+from PLC.InitScripts import InitScript, InitScripts
from PLC.Methods.GetSlivers import get_slivers
from PLC.Methods.GetSlivers import get_slivers
@@
-53,9
+54,12
@@
class GetSliceTicket(Method):
# Tickets are the canonicalized XML-RPC methodResponse
# representation of a partial GetSlivers() response, i.e.,
# Tickets are the canonicalized XML-RPC methodResponse
# representation of a partial GetSlivers() response, i.e.,
+
+ initscripts = InitScripts(self.api, {'enabled': True})
data = {
'timestamp': int(time.time()),
data = {
'timestamp': int(time.time()),
+ 'initscripts': initscripts,
'slivers': get_slivers(self.api, [slice['slice_id']]),
}
'slivers': get_slivers(self.api, [slice['slice_id']]),
}