From 882d885aa4dee705eda9d7a8ac8e36da3a55a36d Mon Sep 17 00:00:00 2001 From: rainzm Date: Fri, 14 May 2021 16:23:27 +0800 Subject: [PATCH] feat(esxi): disable sync cloudimage from image cache --- pkg/multicloud/esxi/storagecache.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkg/multicloud/esxi/storagecache.go b/pkg/multicloud/esxi/storagecache.go index 3d0de21a98..3f806619e5 100644 --- a/pkg/multicloud/esxi/storagecache.go +++ b/pkg/multicloud/esxi/storagecache.go @@ -249,11 +249,12 @@ func (self *SDatastoreImageCache) GetICloudImages() ([]cloudprovider.ICloudImage if err != nil { return nil, err } - images2, err := self.GetIImageInImagecache() - if err != nil { - return nil, err - } - return append(images1, images2...), nil + return images1, nil + // images2, err := self.GetIImageInImagecache() + // if err != nil { + // return nil, err + // } + // return append(images1, images2...), nil } func (self *SDatastoreImageCache) GetIImageById(extId string) (cloudprovider.ICloudImage, error) {