diff options
author | Cole Robinson <crobinso@redhat.com> | 2014-03-06 11:31:09 -0500 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2014-03-06 11:31:09 -0500 |
commit | b078ba8c3d69b62fe748d9182babef8971914277 (patch) | |
tree | 9275fb922e320c783143e9779ecf0cc100561e84 /virtManager | |
parent | 75a2e12dc05544dfcb0798b80786384aafac1c46 (diff) | |
download | virt-manager-b078ba8c3d69b62fe748d9182babef8971914277.tar.gz |
details: Fix fallback if fetching CPU models fails (bz 1072704)
Diffstat (limited to 'virtManager')
-rw-r--r-- | virtManager/details.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/virtManager/details.py b/virtManager/details.py index a3207f6c..56a0d608 100644 --- a/virtManager/details.py +++ b/virtManager/details.py @@ -975,8 +975,9 @@ class vmmDetails(vmmGObjectUI): no_default = not self.is_customize_dialog try: - cpu_values = caps.get_cpu_values(self.vm.get_arch()) + cpu_names = caps.get_cpu_values(self.vm.get_arch()).cpus except: + cpu_names = [] logging.exception("Error populating CPU model list") # CPU model combo @@ -997,7 +998,7 @@ class vmmDetails(vmmGObjectUI): model.append([_("Clear CPU configuration"), "3", virtinst.CPU.SPECIAL_MODE_CLEAR, False]) model.append([None, None, None, True]) - for name in [c.model for c in cpu_values.cpus]: + for name in [c.model for c in cpu_names]: model.append([name, name, name, False]) # Disk cache combo |