Skip to content

Commit

Permalink
Fix bandit #3
Browse files Browse the repository at this point in the history
  • Loading branch information
kuettai committed Mar 1, 2024
1 parent d726557 commit eac2a81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/ec2/Ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit eac2a81

Please sign in to comment.