mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-25 10:16:12 +08:00
vpcs: SyncWithCloudVpc(): 避免重复记日志
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user