Skip to content

Commit e8f965a

Browse files
authored
Merge pull request #42 from DataDog/usama.saqib/amazon-id-cleanup
when platform is detected to be 'amazon' cleanup os-release ID
2 parents d086941 + 7d747f2 commit e8f965a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

host/host_linux.go

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build linux
12
// +build linux
23

34
package host
@@ -184,6 +185,12 @@ func getOSRelease() (platform string, version string, err error) {
184185
version = trimQuotes(field[1])
185186
}
186187
}
188+
189+
// cleanup amazon ID
190+
if platform == "amzn" {
191+
platform = "amazon"
192+
}
193+
187194
return platform, version, nil
188195
}
189196

0 commit comments

Comments
 (0)