fix huawei image upload

This commit is contained in:
TangBin
2019-02-19 20:06:23 +08:00
parent 09fbf49b2b
commit 9ff96c7cf1
+1
View File
@@ -159,6 +159,7 @@ func (self *SStoragecache) uploadImage(ctx context.Context, userCred mcclient.To
// create bucket
input := &obs.CreateBucketInput{}
input.Bucket = bucketName
input.Location = self.region.GetId()
_, err = obsClient.CreateBucket(input)
if err != nil {
return "", err