mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #5226 from yousong/bugfix/yousong-lbbackend-details
lbbackend: fix nil ref when getting details
This commit is contained in:
@@ -310,8 +310,9 @@ func (lbb *SLoadbalancerBackend) GetExtraDetails(ctx context.Context, userCred m
|
||||
if err != nil {
|
||||
log.Warningf("loadbalancer backend %s(%s): get vpc: %v", lbb.Name, lbb.Id, err)
|
||||
return out, err
|
||||
} else if vpc != nil {
|
||||
out.VpcId = vpc.Id
|
||||
}
|
||||
out.VpcId = vpc.Id
|
||||
return out, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user