mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-03-09 15:40:09 +00:00
Change return on abort for clarity
This commit is contained in:
parent
e72c83aafc
commit
8ee1e7b9cd
1 changed files with 2 additions and 4 deletions
|
@ -190,8 +190,7 @@ def vm_details(vmid):
|
||||||
limits=user.limits,
|
limits=user.limits,
|
||||||
usage_check=usage_check)
|
usage_check=usage_check)
|
||||||
else:
|
else:
|
||||||
abort(403)
|
return abort(403)
|
||||||
return None
|
|
||||||
|
|
||||||
|
|
||||||
@app.route("/vm/<string:vmid>/power/<string:action>", methods=['POST'])
|
@app.route("/vm/<string:vmid>/power/<string:action>", methods=['POST'])
|
||||||
|
@ -496,8 +495,7 @@ def settings():
|
||||||
ignored_pools=db_ignored_pools,
|
ignored_pools=db_ignored_pools,
|
||||||
allowed_users=db_allowed_users)
|
allowed_users=db_allowed_users)
|
||||||
else:
|
else:
|
||||||
abort(403)
|
return abort(403)
|
||||||
return None
|
|
||||||
|
|
||||||
|
|
||||||
@app.route("/pool/<string:pool>/ignore", methods=['POST', 'DELETE'])
|
@app.route("/pool/<string:pool>/ignore", methods=['POST', 'DELETE'])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue