summaryrefslogtreecommitdiff
path: root/virtManager
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2014-03-13 12:52:51 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2014-03-13 19:00:54 +0100
commit81696a514441f2320ea10299e1852795f8cb1682 (patch)
treebee2a3cf2ffbd3837ddf1684bd15751bf78938b4 /virtManager
parent6c2645f0d2a33bdd189858b07ad771d9242ea4a5 (diff)
downloadvirt-manager-81696a514441f2320ea10299e1852795f8cb1682.tar.gz
virtinst: use libvirt getCPUModelNames when available
Read the list of CPU models trough getCPUModelNames instead of accessing directly the file cpu_map.xml. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1060316 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'virtManager')
-rw-r--r--virtManager/details.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/virtManager/details.py b/virtManager/details.py
index 56a0d608..14c77fe7 100644
--- a/virtManager/details.py
+++ b/virtManager/details.py
@@ -975,7 +975,8 @@ class vmmDetails(vmmGObjectUI):
no_default = not self.is_customize_dialog
try:
- cpu_names = caps.get_cpu_values(self.vm.get_arch()).cpus
+ cpu_names = caps.get_cpu_values(self.conn.get_backend(),
+ self.vm.get_arch())
except:
cpu_names = []
logging.exception("Error populating CPU model list")