Skip to content

Commit

Permalink
Merge pull request #1002 from ioito/hotfix/qx-qcloud-tencentos
Browse files Browse the repository at this point in the history
fix(qcloud) tencent os dist
  • Loading branch information
ioito authored Jun 27, 2024
2 parents b5bff8d + 7e66765 commit d11cc99
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 52 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ require (
moul.io/http2curl/v2 v2.3.0
yunion.io/x/jsonutils v1.0.1-0.20240203102553-4096f103b401
yunion.io/x/log v1.0.1-0.20240305175729-7cf2d6cd5a91
yunion.io/x/pkg v1.10.1-0.20240601050854-9e3452bf4d47
yunion.io/x/pkg v1.10.1-0.20240627035901-5608be5905f9
yunion.io/x/s3cli v0.0.0-20190917004522-13ac36d8687e
yunion.io/x/structarg v0.0.0-20231017124457-df4d5009457c
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -634,8 +634,8 @@ yunion.io/x/log v0.0.0-20190514041436-04ce53b17c6b/go.mod h1:+gauLs73omeJAPlsXce
yunion.io/x/log v1.0.1-0.20240305175729-7cf2d6cd5a91 h1:inY5o3LDa/zgsIZuPN0HmpzKIsu/lLgsBmMttuDPGj4=
yunion.io/x/log v1.0.1-0.20240305175729-7cf2d6cd5a91/go.mod h1:LC6f/4FozL0iaAbnFt2eDX9jlsyo3WiOUPm03d7+U4U=
yunion.io/x/pkg v0.0.0-20190620104149-945c25821dbf/go.mod h1:t6rEGG2sQ4J7DhFxSZVOTjNd0YO/KlfWQyK1W4tog+E=
yunion.io/x/pkg v1.10.1-0.20240601050854-9e3452bf4d47 h1:uh8OUgdycVKVORSoWNj2w9gMBEaOPgRePSlGqyKYa9s=
yunion.io/x/pkg v1.10.1-0.20240601050854-9e3452bf4d47/go.mod h1:+3nFKJt+O4xWboiDAv2EqvMM0rmm3tPJaOuQSHFkcY8=
yunion.io/x/pkg v1.10.1-0.20240627035901-5608be5905f9 h1:eG7+VwaPllfRptUT0Rb+labNGeaLr/rKVgmNuvPzm84=
yunion.io/x/pkg v1.10.1-0.20240627035901-5608be5905f9/go.mod h1:+3nFKJt+O4xWboiDAv2EqvMM0rmm3tPJaOuQSHFkcY8=
yunion.io/x/s3cli v0.0.0-20190917004522-13ac36d8687e h1:v+EzIadodSwkdZ/7bremd7J8J50Cise/HCylsOJngmo=
yunion.io/x/s3cli v0.0.0-20190917004522-13ac36d8687e/go.mod h1:0iFKpOs1y4lbCxeOmq3Xx/0AcQoewVPwj62eRluioEo=
yunion.io/x/structarg v0.0.0-20231017124457-df4d5009457c h1:QuLab2kSRECZRxo4Lo2KcYn6XjQFDGaZ1+x0pYDVVwQ=
Expand Down
4 changes: 3 additions & 1 deletion pkg/multicloud/qcloud/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ type SImage struct {
ImageSource string // 镜像来源
SyncPercent int // 同步百分比
IsSupportCloudinit bool // 镜像是否支持cloud-init
OsType string
OsVersion string
}

func (self *SImage) GetMinRamSizeMb() int {
Expand Down Expand Up @@ -189,7 +191,7 @@ func (self *SImage) GetSizeByte() int64 {

func (self *SImage) getNormalizedImageInfo() *imagetools.ImageInfo {
if self.imgInfo == nil {
imgInfo := imagetools.NormalizeImageInfo(self.OsName, self.Architecture, self.Platform, self.Platform, "")
imgInfo := imagetools.NormalizeImageInfo(self.OsName, self.Architecture, self.OsType, self.Platform, self.OsVersion)
self.imgInfo = &imgInfo
}

Expand Down
2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ yunion.io/x/jsonutils
## explicit; go 1.12
yunion.io/x/log
yunion.io/x/log/hooks
# yunion.io/x/pkg v1.10.1-0.20240601050854-9e3452bf4d47
# yunion.io/x/pkg v1.10.1-0.20240627035901-5608be5905f9
## explicit; go 1.18
yunion.io/x/pkg/appctx
yunion.io/x/pkg/errors
Expand Down
132 changes: 85 additions & 47 deletions vendor/yunion.io/x/pkg/util/imagetools/imagetools.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d11cc99

Please sign in to comment.