1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-03-23 11:04:49 +00:00
This commit is contained in:
savichev 2017-03-11 15:52:25 +00:00 committed by GitHub
commit 3187c6026f

View file

@ -152,6 +152,7 @@ def overview(request, compute_id):
compute.type)
hostname, host_arch, host_memory, logical_cpu, model_cpu, uri_conn = conn.get_node_info()
hypervisor = conn.hypervisor_type()
hv_verion = ".".join([str(conn.hypervisor_version())[:1].lstrip('0'), str(conn.hypervisor_version())[1:4].lstrip('0'), str(conn.hypervisor_version())[4:].lstrip('0')])
mem_usage = conn.get_memory_usage()
conn.close()
except libvirtError as lib_err: