diff --git a/proxstar/__init__.py b/proxstar/__init__.py index e7e4fa2..7e99b77 100644 --- a/proxstar/__init__.py +++ b/proxstar/__init__.py @@ -377,10 +377,9 @@ def boot_order(vmid): user = User(session['userinfo']['preferred_username']) proxmox = connect_proxmox() if user.rtp or int(vmid) in user.allowed_vms: - print(request.form) boot_order = [] - for key, value in request.form.items(): - boot_order.append(value) + for key in sorted(request.form): + boot_order.append(request.form[key]) vm = VM(vmid) vm.set_boot_order(boot_order) return '', 200 diff --git a/proxstar/static/js/script.js b/proxstar/static/js/script.js index 5a0698c..c92bcf9 100644 --- a/proxstar/static/js/script.js +++ b/proxstar/static/js/script.js @@ -989,7 +989,6 @@ $("#edit-boot-order").click(function(){ for (k = 0; k < boot_order.length; k++) { e = document.getElementById(`boot-order-${k + 1}`); data.append(`${k + 1}`, e.options[e.selectedIndex].value); - console.log(e.options[e.selectedIndex].value); } fetch(`/vm/${vmid}/boot_order`, { credentials: 'same-origin',