Skip to content

Commit

Permalink
Merge pull request #65 from kuettai/main
Browse files Browse the repository at this point in the history
Fix bandit #3
  • Loading branch information
kuettai authored Mar 1, 2024
2 parents 9df1777 + 1c8cce5 commit 95f3ff7
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 95f3ff7

Please sign in to comment.