From 5c86afebbf4369ac4031681bc8247063c1e6bf20 Mon Sep 17 00:00:00 2001 From: nogoodidea Date: Mon, 26 Feb 2024 19:28:17 -0500 Subject: [PATCH] fixes lint error --- proxstar/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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: