From 6a7f30d4a62471a1c2bf0d240fc2f40136e337ee Mon Sep 17 00:00:00 2001 From: catborise Date: Fri, 29 Jun 2018 15:09:01 +0300 Subject: [PATCH] host details cpu bug fixed --- instances/templates/instances.html | 1 - vrtManager/hostdetails.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/instances/templates/instances.html b/instances/templates/instances.html index fbee139..f87d582 100644 --- a/instances/templates/instances.html +++ b/instances/templates/instances.html @@ -51,7 +51,6 @@ {% for host, inst in all_host_vms.items %} - {{ forloop.counter }} {{ host.1 }} diff --git a/vrtManager/hostdetails.py b/vrtManager/hostdetails.py index ea35cea..a45d24f 100644 --- a/vrtManager/hostdetails.py +++ b/vrtManager/hostdetails.py @@ -7,7 +7,7 @@ def cpu_version(doc): for info in doc.xpath('/sysinfo/processor/entry'): elem = info.xpath('@name')[0] if elem == 'version': - return info + return info.text return 'Unknown'