From 80c890dc4cff972ac82bc8708c2b899aa99a665e Mon Sep 17 00:00:00 2001 From: shirou Date: Tue, 12 Jul 2022 09:53:22 +0000 Subject: [PATCH] fix(host,linux): when platform is detected to be 'amazon' cleanup os-release ID --- internal/common/common_linux.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/common/common_linux.go b/internal/common/common_linux.go index 326b342..da44c3f 100644 --- a/internal/common/common_linux.go +++ b/internal/common/common_linux.go @@ -274,6 +274,12 @@ func GetOSRelease() (platform string, version string, err error) { version = trimQuotes(field[1]) } } + + // cleanup amazon ID + if platform == "amzn" { + platform = "amazon" + } + return platform, version, nil }