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:
d0df9c7
)
no need to call timetuple() here
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Thu, 22 Dec 2011 21:14:20 +0000
(16:14 -0500)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Thu, 22 Dec 2011 21:14:20 +0000
(16:14 -0500)
sfa/plc/pldriver.py
patch
|
blob
|
history
diff --git
a/sfa/plc/pldriver.py
b/sfa/plc/pldriver.py
index
62eca37
..
e153894
100644
(file)
--- a/
sfa/plc/pldriver.py
+++ b/
sfa/plc/pldriver.py
@@
-724,7
+724,7
@@
class PlDriver (Driver):
raise RecordNotFound(slice_hrn)
slice = slices[0]
requested_time = utcparse(expiration_time)
- record = {'expires': int(datetime_to_epoch(requested_time
.timetuple()
))}
+ record = {'expires': int(datetime_to_epoch(requested_time))}
try:
self.shell.UpdateSlice(slice['slice_id'], record)
return True