mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-26 01:22:51 +00:00
fix: fix ubuntu version get
This commit is contained in:
parent
ba5daf3653
commit
2224639908
|
|
@ -95,7 +95,9 @@ func CreateManifest(arg common.Argument, name string) error {
|
|||
case "ubuntu":
|
||||
id = "ubuntu"
|
||||
v := strings.Split(osImageArr[1], ".")
|
||||
version = fmt.Sprintf("%s.%s", v[0], v[1])
|
||||
if len(v) >= 2 {
|
||||
version = fmt.Sprintf("%s.%s", v[0], v[1])
|
||||
}
|
||||
case "centos":
|
||||
id = "centos"
|
||||
version = osImageArr[2]
|
||||
|
|
|
|||
Loading…
Reference in New Issue