From: Tony Mack Date: Wed, 26 Feb 2014 00:19:34 +0000 (-0500) Subject: use SFA_MAX_SLICE_RENEW instead of hardcoded value to determine the maximum days... X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=533168e34a1a8ab2329e9870c9f6e28f3dad0f4c use SFA_MAX_SLICE_RENEW instead of hardcoded value to determine the maximum days a slice can be renewed --- diff --git a/sfa/managers/aggregate_manager.py b/sfa/managers/aggregate_manager.py index 36126c26..139fa9f4 100644 --- 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