From eab2eb347a2603421307cfedbe1d395ff61ba764 Mon Sep 17 00:00:00 2001 From: tb365 Date: Thu, 18 Nov 2021 13:22:53 +0800 Subject: [PATCH] gcp lb sync address bugfix --- pkg/compute/models/loadbalancers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/compute/models/loadbalancers.go b/pkg/compute/models/loadbalancers.go index 89998c036f..8c3bd9ac17 100644 --- a/pkg/compute/models/loadbalancers.go +++ b/pkg/compute/models/loadbalancers.go @@ -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()