From 9ff96c7cf1ad50b36fdd02f326893a50e5d1e8d7 Mon Sep 17 00:00:00 2001 From: TangBin Date: Tue, 19 Feb 2019 20:06:23 +0800 Subject: [PATCH] fix huawei image upload --- pkg/util/huawei/storagecache.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/util/huawei/storagecache.go b/pkg/util/huawei/storagecache.go index 0237a559e2..4f060f973e 100644 --- a/pkg/util/huawei/storagecache.go +++ b/pkg/util/huawei/storagecache.go @@ -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