git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
206464b
)
MyPLC fix: slice expires set with UpdateSlice, not possbile with AddSlice
author
Loic Baron
<loic.baron@lip6.fr>
Thu, 4 Sep 2014 12:13:27 +0000
(14:13 +0200)
committer
Loic Baron
<loic.baron@lip6.fr>
Thu, 4 Sep 2014 12:13:27 +0000
(14:13 +0200)
sfa/planetlab/plslices.py
patch
|
blob
|
history
diff --git
a/sfa/planetlab/plslices.py
b/sfa/planetlab/plslices.py
index
73f2bc1
..
197ffca
100644
(file)
--- a/
sfa/planetlab/plslices.py
+++ b/
sfa/planetlab/plslices.py
@@
-398,12
+398,15
@@
class PlSlices:
'description': description,
'hrn': slice_hrn,
'sfa_created': 'True',
'description': description,
'hrn': slice_hrn,
'sfa_created': 'True',
- 'expires': expires,
+
#
'expires': expires,
}
# add the slice
slice_id = self.driver.shell.AddSlice(slice)
# plcapi tends to mess with the incoming hrn so let's make sure
self.driver.shell.SetSliceHrn (slice_id, slice_hrn)
}
# add the slice
slice_id = self.driver.shell.AddSlice(slice)
# plcapi tends to mess with the incoming hrn so let's make sure
self.driver.shell.SetSliceHrn (slice_id, slice_hrn)
+ # cannot be set with AddSlice
+ # set the expiration
+ self.driver.shell.UpdateSlice(slice_id, {'expires': expires})
return self.driver.shell.GetSlices(slice_id)[0]
return self.driver.shell.GetSlices(slice_id)[0]