Skip to content

Commit

Permalink
fixed json.loads for result
Browse files Browse the repository at this point in the history
  • Loading branch information
krishnaglodha committed Nov 19, 2024
1 parent a20c345 commit fbc3907
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/geoserverx/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ def update_workspace(
result = client.update_workspace(
current_name,
UpdateWorkspaceInfo(name=new_name, isolated=isolated),
).model_dump_json()
if json.loads(result)["code"] == 200:
).model_dump()
if result['code'] == 200:
typer.secho(result, fg=typer.colors.GREEN)
else:
typer.secho(result, fg=typer.colors.RED)
Expand Down

0 comments on commit fbc3907

Please sign in to comment.