Skip to content

Commit

Permalink
recall how python if statements work
Browse files Browse the repository at this point in the history
  • Loading branch information
nogoodidea committed Feb 27, 2024
1 parent 8e1b0a8 commit 86abbf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proxstar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def vm_renew(vmid):
@auth.oidc_auth
def create_disk(vmid, size):
## are they trying to disk with zero size
if(size =< 0):
if size <= 0:
return '', 400
user = User(session['userinfo']['preferred_username'])
connect_proxmox()
Expand Down Expand Up @@ -594,7 +594,7 @@ 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
}

Expand Down

0 comments on commit 86abbf5

Please sign in to comment.