gcp lb sync address bugfix

This commit is contained in:
tb365
2021-11-18 13:22:53 +08:00
parent aaddc08700
commit 107581d532
+1
View File
@@ -1177,6 +1177,7 @@ func (lb *SLoadbalancer) SyncWithCloudLoadbalancer(ctx context.Context, userCred
diff, err := db.Update(lb, func() error {
lb.Address = extLb.GetAddress()
lb.AddressType = extLb.GetAddressType()
lb.Status = extLb.GetStatus()
// lb.Name = extLb.GetName()
lb.LoadbalancerSpec = extLb.GetLoadbalancerSpec()