mirror of
https://github.com/retspen/webvirtcloud
synced 2026-03-23 11:04:49 +00:00
Update views.py
This commit is contained in:
parent
4ce76f57c6
commit
5e0bce9110
1 changed files with 1 additions and 0 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue