Skip to content

Commit

Permalink
Merge pull request #1585 from DataDog/bryce.kahle/os-release-version-id
Browse files Browse the repository at this point in the history
use VERSION_ID from os-release
shirou authored Jan 21, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 9b6f828 + d753f78 commit 9de1a42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/common/common_linux.go
Original file line number Diff line number Diff line change
@@ -329,7 +329,7 @@ func GetOSReleaseWithContext(ctx context.Context) (platform string, version stri
switch field[0] {
case "ID": // use ID for lowercase
platform = trimQuotes(field[1])
case "VERSION":
case "VERSION_ID":
version = trimQuotes(field[1])
}
}

0 comments on commit 9de1a42

Please sign in to comment.