Skip to content

Commit

Permalink
fix(host,linux): when platform is detected to be 'amazon' cleanup os-…
Browse files Browse the repository at this point in the history
…release ID
  • Loading branch information
shirou committed Jul 12, 2022
1 parent 46f7642 commit 80c890d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/common/common_linux.go
Expand Up @@ -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
}

Expand Down

0 comments on commit 80c890d

Please sign in to comment.