mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
fix(region): avoid network create failed when vpc is ok but wire not sync
This commit is contained in:
@@ -1234,15 +1234,16 @@ func (self *SManagedVirtualizationRegionDriver) RequestCreateVpc(ctx context.Con
|
||||
}
|
||||
}
|
||||
|
||||
err = vpc.SyncRemoteWires(ctx, userCred)
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "vpc.SyncRemoteWires")
|
||||
}
|
||||
|
||||
err = vpc.SyncWithCloudVpc(ctx, userCred, ivpc, nil)
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "vpc.SyncWithCloudVpc")
|
||||
}
|
||||
|
||||
err = vpc.SyncRemoteWires(ctx, userCred)
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "vpc.SyncRemoteWires")
|
||||
}
|
||||
return nil, nil
|
||||
})
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user