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
(from parent 1:
87265d8
)
use SFA_MAX_SLICE_RENEW instead of hardcoded value to determine the maximum days...
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Wed, 26 Feb 2014 00:19:34 +0000
(19:19 -0500)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Wed, 26 Feb 2014 00:19:34 +0000
(19:19 -0500)
sfa/managers/aggregate_manager.py
patch
|
blob
|
history
diff --git
a/sfa/managers/aggregate_manager.py
b/sfa/managers/aggregate_manager.py
index
36126c2
..
139fa9f
100644
(file)
--- a/
sfa/managers/aggregate_manager.py
+++ b/
sfa/managers/aggregate_manager.py
@@
-94,7
+94,7
@@
class AggregateManager:
if options.get('geni_extend_alap'):
now = datetime.datetime.now()
requested = utcparse(expiration_time)
- max = adjust_datetime(now, days=
30
)
+ max = adjust_datetime(now, days=
int(api.config.SFA_MAX_SLICE_RENEW)
)
if requested > max:
expiration_time = max