Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoreira-valory committed Dec 20, 2024
1 parent 2310248 commit 10a247c
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions operate/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,31 +788,6 @@ async def _update_service(request: Request) -> JSONResponse:

return JSONResponse(content=output.json)

@with_retries
async def _partial_update_service(request: Request) -> JSONResponse:
"""Partially update a service (merge update)."""
if operate.password is None:
return USER_NOT_LOGGED_IN_ERROR

service_config_id = request.path_params["service_config_id"]
manager = operate.service_manager()

if not manager.exists(service_config_id=service_config_id):
return service_not_found_error(service_config_id=service_config_id)

template = await request.json()
allow_different_service_public_id = template.get(
"allow_different_service_public_id", False
)
output = manager.update(
service_config_id=service_config_id,
service_template=template,
allow_different_service_public_id=allow_different_service_public_id,
partial_update=True,
)

return JSONResponse(content=output.json)

@app.put("/api/v2/services")
@with_retries
async def _update_all_services(request: Request) -> JSONResponse:
Expand Down

0 comments on commit 10a247c

Please sign in to comment.