mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix: 避免监听未设置manager_id
This commit is contained in:
@@ -231,6 +231,10 @@ func (man *SLoadbalancerListenerManager) ValidateCreateData(ctx context.Context,
|
||||
return nil, httperrors.NewResourceNotFoundError("failed to find region for loadbalancer %s", lb.Name)
|
||||
}
|
||||
|
||||
if len(lb.ManagerId) > 0 {
|
||||
data.Set("manager_id", jsonutils.NewString(lb.ManagerId))
|
||||
}
|
||||
|
||||
return region.GetDriver().ValidateCreateLoadbalancerListenerData(ctx, userCred, ownerId, data, lb, backendGroupV.Model)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user