Skip to content

Commit

Permalink
Merge pull request #44 from DataDog/isabelle.sauve/read-version-id
Browse files Browse the repository at this point in the history
Use VERSION_ID instead of VERSION field for platform version
  • Loading branch information
ISauve authored Nov 2, 2022
2 parents 797e67f + 9f51811 commit ad103b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion host/host_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func getOSRelease() (platform string, version string, err error) {
switch field[0] {
case "ID": // use ID for lowercase
platform = trimQuotes(field[1])
case "VERSION":
case "VERSION_ID":
version = trimQuotes(field[1])
}
}
Expand Down

0 comments on commit ad103b6

Please sign in to comment.