From 9d1cb50d715e4a6c4f97a40cba8ebdc5436cb0b7 Mon Sep 17 00:00:00 2001 From: Qu Xuan Date: Fri, 12 Apr 2024 14:56:00 +0800 Subject: [PATCH] fix: add kylin image dist --- util/imagetools/imagetools.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/imagetools/imagetools.go b/util/imagetools/imagetools.go index 927957e..e5ae930 100644 --- a/util/imagetools/imagetools.go +++ b/util/imagetools/imagetools.go @@ -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) {