From 1f21d0a1757c8602f4da6ebb3ece414f2aee657a Mon Sep 17 00:00:00 2001 From: Jordan Rodgers Date: Mon, 19 Mar 2018 14:33:50 -0400 Subject: [PATCH] remove logging because it works now wtf --- proxstar/__init__.py | 2 -- proxstar/static/js/script.js | 2 -- proxstar/vm.py | 1 - 3 files changed, 5 deletions(-) diff --git a/proxstar/__init__.py b/proxstar/__init__.py index 088bfa7..caa24c6 100644 --- a/proxstar/__init__.py +++ b/proxstar/__init__.py @@ -377,12 +377,10 @@ 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) vm = VM(vmid) - print(boot_order) vm.set_boot_order(boot_order) return '', 200 else: diff --git a/proxstar/static/js/script.js b/proxstar/static/js/script.js index 8d46bc7..c92bcf9 100644 --- a/proxstar/static/js/script.js +++ b/proxstar/static/js/script.js @@ -988,8 +988,6 @@ $("#edit-boot-order").click(function(){ var data = new FormData(); for (k = 0; k < boot_order.length; k++) { e = document.getElementById(`boot-order-${k + 1}`); - console.log(k + 1); - console.log(e.options[e.selectedIndex].value); data.append(`${k + 1}`, e.options[e.selectedIndex].value); } fetch(`/vm/${vmid}/boot_order`, { diff --git a/proxstar/vm.py b/proxstar/vm.py index 2f83c53..86f6f59 100644 --- a/proxstar/vm.py +++ b/proxstar/vm.py @@ -115,7 +115,6 @@ class VM(object): raw_boot_order = '' for i in range(0, len(boot_order)): raw_boot_order += boot_order_lookup[boot_order[i]] - print(raw_boot_order) proxmox.nodes(self.node).qemu(self.id).config.put(boot=raw_boot_order) @lazy_property