Merge pull request #1585 from DataDog/bryce.kahle/os-release-version-id

use VERSION_ID from os-release
pull/1587/head
shirou 1 year ago committed by GitHub
commit 9de1a429b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -329,7 +329,7 @@ func GetOSReleaseWithContext(ctx context.Context) (platform string, version stri
switch field[0] { switch field[0] {
case "ID": // use ID for lowercase case "ID": // use ID for lowercase
platform = trimQuotes(field[1]) platform = trimQuotes(field[1])
case "VERSION": case "VERSION_ID":
version = trimQuotes(field[1]) version = trimQuotes(field[1])
} }
} }

Loading…
Cancel
Save