From bbf9fdbac509c757149519afc28d5da7dc8958cd Mon Sep 17 00:00:00 2001 From: nogoodidea Date: Mon, 26 Feb 2024 19:37:42 -0500 Subject: [PATCH] I hate python i hate python i hate python --- proxstar/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/proxstar/__init__.py b/proxstar/__init__.py index ea5f97f..770cf58 100644 --- a/proxstar/__init__.py +++ b/proxstar/__init__.py @@ -594,9 +594,8 @@ def create(): memory = request.form['mem'] disk = request.form['disk'] ## CHECK STUFF DEAR GOD - if int(cores) <= 0 or int(memory) <= 0 or int(disk) <= 0{ + if int(cores) <= 0 or int(memory) <= 0 or int(disk) <= 0: return 'VM creation with cores and/or mem and/or disk values that are less than 0' 400 - } template = request.form['template'] iso = request.form['iso']