Commit 2a7e887b authored by Guido Trotter's avatar Guido Trotter
Browse files

KVMHypervisor: return memory and cpus as integers



Currently the KVM hypervisor returns strings for the memory and cpu
values, while the xen hypervisor returns integers. Making this uniform
converting the values to integers in KVM as well.
Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent ade0e8cd
......@@ -194,9 +194,9 @@ class KVMHypervisor(hv_base.BaseHypervisor):
while arg_list:
arg = arg_list.pop(0)
if arg == '-m':
memory = arg_list.pop(0)
memory = int(arg_list.pop(0))
elif arg == '-smp':
vcpus = arg_list.pop(0)
vcpus = int(arg_list.pop(0))
return (instance_name, pid, memory, vcpus, stat, times)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment