Skip to content

Commit

Permalink
sending model instead of dict for update ws
Browse files Browse the repository at this point in the history
  • Loading branch information
krishnaglodha committed Nov 19, 2024
1 parent 6aee3e9 commit a20c345
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/geoserverx/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,7 @@ def update_workspace(
client = SyncGeoServerX(username, password, url)
result = client.update_workspace(
current_name,
UpdateWorkspaceInfo(name=new_name, isolated=isolated).model_dump(
exclude_none=True
),
UpdateWorkspaceInfo(name=new_name, isolated=isolated),
).model_dump_json()
if json.loads(result)["code"] == 200:
typer.secho(result, fg=typer.colors.GREEN)
Expand Down

0 comments on commit a20c345

Please sign in to comment.