Skip to content

Commit ad103b6

Browse files
authored
Merge pull request #44 from DataDog/isabelle.sauve/read-version-id
Use VERSION_ID instead of VERSION field for platform version
2 parents 797e67f + 9f51811 commit ad103b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

host/host_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func getOSRelease() (platform string, version string, err error) {
181181
switch field[0] {
182182
case "ID": // use ID for lowercase
183183
platform = trimQuotes(field[1])
184-
case "VERSION":
184+
case "VERSION_ID":
185185
version = trimQuotes(field[1])
186186
}
187187
}

0 commit comments

Comments
 (0)