From 670b055efc81ab2fd0194a42aff0b9489f559536 Mon Sep 17 00:00:00 2001 From: ioito Date: Tue, 23 Jul 2019 21:02:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=90=8C=E6=AD=A5=E5=AE=89?= =?UTF-8?q?=E5=85=A8=E7=BB=84=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/compute/models/cloudsync.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/compute/models/cloudsync.go b/pkg/compute/models/cloudsync.go index cf038c8cc0..f1b629d12f 100644 --- a/pkg/compute/models/cloudsync.go +++ b/pkg/compute/models/cloudsync.go @@ -213,6 +213,13 @@ func syncVpcSecGroup(ctx context.Context, userCred mcclient.TokenCredential, syn _, _, result := SecurityGroupCacheManager.SyncSecurityGroupCaches(ctx, userCred, provider, secgroups, localVpc) syncResults.Add(SecurityGroupCacheManager, result) + + msg := result.Result() + notes := fmt.Sprintf("SyncSecurityGroupCaches for VPC %s result: %s", localVpc.Name, msg) + log.Infof(notes) + if result.IsError() { + return + } } func syncVpcRouteTables(ctx context.Context, userCred mcclient.TokenCredential, syncResults SSyncResultSet, provider *SCloudprovider, localVpc *SVpc, remoteVpc cloudprovider.ICloudVpc, syncRange *SSyncRange) {