mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(region): optimized backend sync (#23891)
This commit is contained in:
@@ -611,11 +611,9 @@ func (lbb *SLoadbalancerBackend) constructFieldsFromCloudLoadbalancerBackend(ext
|
||||
guest := instance.(*SGuest)
|
||||
|
||||
lbb.BackendId = guest.Id
|
||||
address, err := guest.GetAddress()
|
||||
if err != nil {
|
||||
return err
|
||||
if len(lbb.Address) == 0 {
|
||||
lbb.Address, _ = guest.GetAddress()
|
||||
}
|
||||
lbb.Address = address
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user