Compare commits

...

2 Commits

Author SHA1 Message Date
luckylhb90
1d31625929
Merge 7ff2bd8caf into 4b2abf8ac2 2024-11-15 10:53:23 +08:00
hobo.l
7ff2bd8caf fix: update load balance model failed 2024-09-20 17:23:34 +03:00

View File

@ -346,11 +346,6 @@ class ModelLoadBalancingService:
load_balancing_config = current_load_balancing_configs_dict[config_id]
# check duplicate name
for current_load_balancing_config in current_load_balancing_configs:
if current_load_balancing_config.id != config_id and current_load_balancing_config.name == name:
raise ValueError("Load balancing config name {} already exists".format(name))
if credentials:
if not isinstance(credentials, dict):
raise ValueError("Invalid load balancing config credentials")