Skip to content

Commit

Permalink
fix: add kylin image dist
Browse files Browse the repository at this point in the history
  • Loading branch information
ioito committed Apr 12, 2024
1 parent 550ff8a commit 9d1cb50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions util/imagetools/imagetools.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ func normalizeOsDistribution(osDist string, imageName string) string {
return "AlmaLinux"
} else if strings.Contains(osDist, "amazon") && strings.Contains(osDist, "linux") {
return "Amazon Linux"
} else if strings.Contains(osDist, "kylin") {
return "Kylin"
} else if strings.Contains(osDist, "windows") {
for _, ver := range []string{"2003", "2008", "2012", "2016", "2019", "2022"} {
if strings.Contains(osDist, ver) {
Expand Down

0 comments on commit 9d1cb50

Please # to comment.