mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-03-09 15:40:09 +00:00
fixes lint error
This commit is contained in:
parent
d8146636ea
commit
693ddbc6f5
1 changed files with 3 additions and 2 deletions
|
@ -412,8 +412,9 @@ def vm_renew(vmid):
|
||||||
@app.route('/vm/<string:vmid>/disk/create/<int:size>', methods=['POST'])
|
@app.route('/vm/<string:vmid>/disk/create/<int:size>', methods=['POST'])
|
||||||
@auth.oidc_auth
|
@auth.oidc_auth
|
||||||
def create_disk(vmid, size):
|
def create_disk(vmid, size):
|
||||||
if(size =< 0):## are they trying to disk with zero size
|
## are they trying to disk with zero size
|
||||||
return '', 400
|
if(size =< 0):
|
||||||
|
return '', 400
|
||||||
user = User(session['userinfo']['preferred_username'])
|
user = User(session['userinfo']['preferred_username'])
|
||||||
connect_proxmox()
|
connect_proxmox()
|
||||||
if user.rtp or int(vmid) in user.allowed_vms:
|
if user.rtp or int(vmid) in user.allowed_vms:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue