From eac2a817ae8107e7b6165da8bf4b1818b8ea83de Mon Sep 17 00:00:00 2001 From: KuetTai Date: Fri, 1 Mar 2024 09:27:22 +0000 Subject: [PATCH] Fix bandit #3 --- services/ec2/Ec2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/ec2/Ec2.py b/services/ec2/Ec2.py index d5c383b..10d4ba1 100644 --- a/services/ec2/Ec2.py +++ b/services/ec2/Ec2.py @@ -45,7 +45,7 @@ def getOutdateSQLVersion(self): try: outdateVersion = 2012 - resp = requests.get("https://endoflife.date/api/mssqlserver.json") + resp = requests.get("https://endoflife.date/api/mssqlserver.json", timeout=10) for prod in resp.json(): if date.today() > datetime.strptime(prod['eol'], '%Y-%m-%d').date(): outdateVersion = prod['cycle'][0:4]