From 77d6e24ae72ecb7926e75309f4aee25058bc016d Mon Sep 17 00:00:00 2001 From: tangbin Date: Tue, 11 Feb 2020 16:40:48 +0800 Subject: [PATCH] fix ctyun os version --- pkg/multicloud/ctyun/image.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/multicloud/ctyun/image.go b/pkg/multicloud/ctyun/image.go index c9d9a5326f..0829ea8ed5 100644 --- a/pkg/multicloud/ctyun/image.go +++ b/pkg/multicloud/ctyun/image.go @@ -42,6 +42,7 @@ type SImage struct { Platform string `json:"platform"` Name string `json:"name"` OSBit int64 `json:"osBit"` + OSVersion string `json:"osVersion"` MinRAM int64 `json:"minRam"` MinDisk int64 `json:"minDisk"` ImageType string `json:"imageType"` @@ -135,7 +136,7 @@ func (self *SImage) GetOsDist() string { } func (self *SImage) GetOsVersion() string { - return imagetools.NormalizeImageInfo(self.Name, "", "", "", "").OsVersion + return imagetools.NormalizeImageInfo(self.OSVersion, "", "", self.Platform, "").OsVersion } func (self *SImage) GetOsArch() string {