1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

calling hypervisor, machine, emulator operation is linked to arch variable.

This commit is contained in:
catborise 2018-10-02 15:15:41 +03:00
parent ea4f2cba8b
commit 7d21c138b7
4 changed files with 22 additions and 9 deletions

View file

@ -49,7 +49,7 @@
<p>{% trans "Connection" %}</p>
<p>{% trans "Details" %}</p>
</div>
<div class="col-xs-8 col-sm-7">
<div class="col-xs-8 col-sm-9">
<p>{{ hostname }}</p>
<p>{% for arch, hpv in hypervisor.items %}
<span class="glyphicon glyphicon-chevron-right"></span>

View file

@ -156,7 +156,7 @@ def overview(request, compute_id):
hostname, host_arch, host_memory, logical_cpu, model_cpu, uri_conn = conn.get_node_info()
hypervisor = conn.hypervisor_type()
mem_usage = conn.get_memory_usage()
emulator = conn.emulator()
emulator = conn.get_emulator(host_arch)
conn.close()
except libvirtError as lib_err:
error_messages.append(lib_err)