From 81993683f562278b70baa4354bae73053f9146d1 Mon Sep 17 00:00:00 2001 From: Qu Xuan Date: Fri, 20 Dec 2019 21:37:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=B7=E6=AD=8C=E4=BA=91=E9=95=9C?= =?UTF-8?q?=E5=83=8F=E8=B4=A6=E5=8F=B7=E5=86=85=E5=85=B1=E4=BA=AB,?= =?UTF-8?q?=E5=8F=AA=E9=9C=80=E8=A6=81=E4=B8=80=E4=B8=AAstoragecache?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/multicloud/google/storagecache.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkg/multicloud/google/storagecache.go b/pkg/multicloud/google/storagecache.go index 3585170f43..dc329b392d 100644 --- a/pkg/multicloud/google/storagecache.go +++ b/pkg/multicloud/google/storagecache.go @@ -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 {