Skip to content

Commit

Permalink
Merge pull request #1327 from shirou/feature/amazon-id-cleanup
Browse files Browse the repository at this point in the history
fix(host,linux): when platform is detected to be 'amazon' cleanup os-release ID
  • Loading branch information
shirou committed Jul 14, 2022
2 parents aa3f5a5 + 80c890d commit 57a8776
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 57a8776

Please sign in to comment.