[aws-lambda] Fix script

Returning a default date far in the future makes the latest.py script fail.
This commit is contained in:
Marc Wrobel
2023-11-24 22:26:32 +01:00
committed by GitHub
parent 394a6ffd75
commit 6023ccc257

View File

@@ -1,5 +1,6 @@
from bs4 import BeautifulSoup
from common import endoflife
from datetime import datetime
"""Fetch new AWS lambda runtimes from https://docs.aws.amazon.com.
@@ -25,7 +26,7 @@ def fetch_product_file_release_date(releaseCycle, product):
if releaseCycle == release['releaseCycle']:
return release['releaseDate'].strftime("%Y-%m-%d")
return '9999-12-31'
return datetime.now().strftime("%Y-%m-%d")
print(f"::group::{PRODUCT}")