1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-03-23 11:04:49 +00:00

Update views.py

This commit is contained in:
savichev 2016-06-15 13:31:31 +05:00 committed by GitHub
parent 4ce76f57c6
commit 5e0bce9110

View file

@ -152,6 +152,7 @@ def overview(request, compute_id):
compute.type) compute.type)
hostname, host_arch, host_memory, logical_cpu, model_cpu, uri_conn = conn.get_node_info() hostname, host_arch, host_memory, logical_cpu, model_cpu, uri_conn = conn.get_node_info()
hypervisor = conn.hypervisor_type() 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() mem_usage = conn.get_memory_usage()
conn.close() conn.close()
except libvirtError as lib_err: except libvirtError as lib_err: