Fix logic bug in platform EOL check code. (#18172)
Austin S. Hemmelgarn committed
Jul 15, 2024 at 11:32 UTC
5e0e6164b9a0dd23741ddd52f6b639cd3ab48185
1 file changed
+3
-2
.github/scripts/platform-impending-eol.py
+3
-2
@@ -48,13 +48,14 @@ except urllib.error.HTTPError as e:
48
)
49
sys.exit(EXIT_FAILURE)
50
51
-eol = datetime.date.fromisoformat(data['eol'])
51
52
if LTS == '1' and 'extendedSupport' in data:
54
- datetime.date.fromisoformat(data['extendedSupport'])
53
+ ref = 'extendedSupport'
54
else:
55
+ ref = 'eol'
56
LTS = False
57
58
+eol = datetime.date.fromisoformat(data[ref])
59
offset = abs(eol - NOW)
60
61
if offset <= LEAD_DAYS: