feat: add support for SUPPORT_END in /etc/os-release (#1612)

Signed-off-by: Benji Visser <benji@093b.org>
This commit is contained in:
Benji Visser
2023-02-27 13:43:19 -05:00
committed by GitHub
parent fbda21f4f4
commit 9e953b1da3
9 changed files with 1670 additions and 18 deletions
+1
View File
@@ -125,6 +125,7 @@ func parseOsRelease(contents string) (*Release, error) {
BugReportURL: values["BUG_REPORT_URL"],
PrivacyPolicyURL: values["PRIVACY_POLICY_URL"],
CPEName: values["CPE_NAME"],
SupportEnd: values["SUPPORT_END"],
}
// don't allow for empty contents to result in a Release object being created