vpcs: SyncWithCloudVpc(): 避免重复记日志

This commit is contained in:
Yousong Zhou
2018-12-06 15:02:04 +00:00
parent d50f441c25
commit 2666bfa2ae
2 changed files with 0 additions and 4 deletions
-3
View File
@@ -288,9 +288,6 @@ func (self *SVpc) SyncWithCloudVpc(extVPC cloudprovider.ICloudVpc) error {
return nil
})
if err != nil {
log.Errorf("syncWithCloudVpc error %s", err)
}
return err
}
-1
View File
@@ -51,7 +51,6 @@ func (self *VpcCreateTask) OnInit(ctx context.Context, obj db.IStandaloneModel,
err = vpc.SyncWithCloudVpc(ivpc)
if err != nil {
log.Errorf("SyncWithCloudVpc fail: %s", err)
self.TaskFailed(ctx, vpc, err)
return
}