mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
ctyun custom image create bugfix
This commit is contained in:
@@ -41,6 +41,11 @@ func (self *SStoragecache) DownloadImage(userCred mcclient.TokenCredential, imag
|
||||
}
|
||||
|
||||
func (self *SStoragecache) UploadImage(ctx context.Context, userCred mcclient.TokenCredential, image *cloudprovider.SImageCreateOption, isForce bool) (string, error) {
|
||||
img, err := self.region.GetImage(image.ExternalId)
|
||||
if err == nil {
|
||||
return img.GetGlobalId(), nil
|
||||
}
|
||||
|
||||
return "", cloudprovider.ErrNotSupported
|
||||
}
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ package huawei
|
||||
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"yunion.io/x/pkg/utils"
|
||||
|
||||
api "yunion.io/x/onecloud/pkg/apis/compute"
|
||||
|
||||
Reference in New Issue
Block a user