Commit c1563701 authored by Chris Merrett's avatar Chris Merrett

Converted MIN_RETENTION_TIME env var to an integer

parent ffd9ea64
Pipeline #960 passed with stage
in 6 seconds
......@@ -9,7 +9,7 @@ a snapshot of all EBS volumes attached to it. It also tags the snapshots for
deletion after a number of retention days.
"""
MIN_RETENTION_COUNT = os.environ['MIN_RETENTION_COUNT']
MIN_RETENTION_COUNT = int(os.environ['MIN_RETENTION_COUNT'])
RETENTION_DAYS_DEFAULT = os.environ['DEFAULT_RETENTION_DAYS']
SNAPSHOT_TAG = os.environ['SNAPSHOT_TAG']
RETENTION_TAG = os.environ['RETENTION_TAG']
......
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment