add ability to change vm memory, remove space between amount and unit

This commit is contained in:
Jordan Rodgers 2017-12-10 23:58:29 -05:00
parent 9fa6bf051d
commit 75ef5a98d1
4 changed files with 102 additions and 3 deletions

View file

@ -227,6 +227,11 @@ def change_vm_cpu(proxmox, vmid, cores):
node.qemu(vmid).config.put(cores=cores)
def change_vm_mem(proxmox, vmid, mem):
node = proxmox.nodes(get_vm_node(proxmox, vmid))
node.qemu(vmid).config.put(memory=mem)
def get_isos(proxmox, storage):
isos = []
for iso in proxmox.nodes('proxmox01').storage(storage).content.get():