use SFA_MAX_SLICE_RENEW instead of hardcoded value to determine the maximum days...
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Wed, 26 Feb 2014 00:20:51 +0000 (19:20 -0500)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Wed, 26 Feb 2014 00:20:51 +0000 (19:20 -0500)
sfa/managers/aggregate_manager.py

index b10e441..2864567 100644 (file)
@@ -151,7 +151,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