From 5e0bce911067085cd77551a37685e488d7afdf7c Mon Sep 17 00:00:00 2001 From: savichev Date: Wed, 15 Jun 2016 13:31:31 +0500 Subject: [PATCH] Update views.py --- computes/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/computes/views.py b/computes/views.py index 39af4d0..468dd72 100644 --- a/computes/views.py +++ b/computes/views.py @@ -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: