mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-24 23:25:24 +00:00
host details cpu bug fixed
This commit is contained in:
parent
20e8b876e4
commit
6a7f30d4a6
2 changed files with 1 additions and 2 deletions
|
@ -51,7 +51,6 @@
|
||||||
<tbody class="searchable">
|
<tbody class="searchable">
|
||||||
{% for host, inst in all_host_vms.items %}
|
{% for host, inst in all_host_vms.items %}
|
||||||
<!-- copied /-->
|
<!-- copied /-->
|
||||||
<!-- <tr style="font-size:16px;background-color: #5CB75C; color: white" > /-->
|
|
||||||
<tr class="success" style="font-size:16px">
|
<tr class="success" style="font-size:16px">
|
||||||
<td>{{ forloop.counter }}</td>
|
<td>{{ forloop.counter }}</td>
|
||||||
<td><a href="{% url 'overview' host.0 %}">{{ host.1 }}</a></td>
|
<td><a href="{% url 'overview' host.0 %}">{{ host.1 }}</a></td>
|
||||||
|
|
|
@ -7,7 +7,7 @@ def cpu_version(doc):
|
||||||
for info in doc.xpath('/sysinfo/processor/entry'):
|
for info in doc.xpath('/sysinfo/processor/entry'):
|
||||||
elem = info.xpath('@name')[0]
|
elem = info.xpath('@name')[0]
|
||||||
if elem == 'version':
|
if elem == 'version':
|
||||||
return info
|
return info.text
|
||||||
return 'Unknown'
|
return 'Unknown'
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue