diff --git a/proxstar/__init__.py b/proxstar/__init__.py index c72f0f5..5f6b362 100644 --- a/proxstar/__init__.py +++ b/proxstar/__init__.py @@ -412,8 +412,9 @@ def vm_renew(vmid): @app.route('/vm//disk/create/', methods=['POST']) @auth.oidc_auth def create_disk(vmid, size): - if(size =< 0):## are they trying to disk with zero size - return '', 400 + ## are they trying to disk with zero size + if(size =< 0): + return '', 400 user = User(session['userinfo']['preferred_username']) connect_proxmox() if user.rtp or int(vmid) in user.allowed_vms: