mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-03-09 15:40:09 +00:00
remove logging because it works now wtf
This commit is contained in:
parent
f189b00932
commit
1f21d0a175
3 changed files with 0 additions and 5 deletions
|
@ -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:
|
||||
|
|
|
@ -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`, {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue