Skip to content

Commit 372981f

Browse files
committed
[serve] Add validation for 'proxy_location' and 'http_options' config parameters for the 'serve deploy' command
Signed-off-by: axreldable <aleksei.starikov.ax@gmail.com>
1 parent aceaadd commit 372981f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

python/ray/serve/scripts.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -300,11 +300,7 @@ def _validate_deployment_config(
300300
), f"new_config must be ServeDeploySchema, got {type(new_config)!r}"
301301

302302
curr_proxy_location = curr_serve_details.proxy_location
303-
new_proxy_location = (
304-
new_config.proxy_location
305-
if "proxy_location" in new_config.__fields_set__
306-
else None
307-
)
303+
new_proxy_location = new_config.dict(exclude_unset=True).get("proxy_location")
308304
if (
309305
new_proxy_location is not None
310306
and curr_proxy_location is not None

0 commit comments

Comments
 (0)