fix: 谷歌云镜像账号内共享,只需要一个storagecache

This commit is contained in:
Qu Xuan
2019-12-20 21:37:06 +08:00
parent 98dbc76020
commit 81993683f5
+3 -4
View File
@@ -16,7 +16,6 @@ package google
import (
"context"
"fmt"
"github.com/aliyun/aliyun-oss-go-sdk/oss"
@@ -37,11 +36,11 @@ func (cache *SStoragecache) GetMetadata() *jsonutils.JSONDict {
}
func (cache *SStoragecache) GetId() string {
return fmt.Sprintf("%s-%s", cache.region.client.providerId, cache.region.GetId())
return cache.region.client.providerId
}
func (cache *SStoragecache) GetName() string {
return fmt.Sprintf("%s-%s", cache.region.client.providerName, cache.region.GetId())
return cache.region.client.providerName
}
func (cache *SStoragecache) GetStatus() string {
@@ -53,7 +52,7 @@ func (cache *SStoragecache) Refresh() error {
}
func (cache *SStoragecache) GetGlobalId() string {
return fmt.Sprintf("%s-%s", cache.region.client.providerId, cache.region.GetGlobalId())
return cache.region.client.providerId
}
func (cache *SStoragecache) IsEmulated() bool {