fix(host,linux): when platform is detected to be 'amazon' cleanup os-release ID

This commit is contained in:
shirou 2022-07-12 09:53:22 +00:00
parent 46f7642940
commit 80c890dc4c
1 changed files with 6 additions and 0 deletions

View File

@ -274,6 +274,12 @@ func GetOSRelease() (platform string, version string, err error) {
version = trimQuotes(field[1]) version = trimQuotes(field[1])
} }
} }
// cleanup amazon ID
if platform == "amzn" {
platform = "amazon"
}
return platform, version, nil return platform, version, nil
} }