Skip to content

Commit

Permalink
fix: Add now required content to JSONResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
johnoppenheimer committed Aug 8, 2022
1 parent eb00c5f commit 83841e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/deployments.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def get_deployment_status(
try:
status = azure_client.get_deployment_status(project_name)
except DeploymentNotFound:
return JSONResponse(status_code=404)
return JSONResponse(status_code=404, content={})
return {"status": status}


Expand Down
2 changes: 1 addition & 1 deletion api/vms.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def delete_vm(
):
"""Delete a VM and its connection information on Guacamole."""
if not current_user.is_admin:
return JSONResponse(status_code=403)
return JSONResponse(status_code=403, content={})
azure_client.delete_vm(project_name)
azure_client.delete_deployment(
project_name
Expand Down

0 comments on commit 83841e9

Please sign in to comment.