fix(host,linux): when platform is detected to be 'amazon' cleanup os-release ID
This commit is contained in:
parent
46f7642940
commit
80c890dc4c
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue