From b078ba8c3d69b62fe748d9182babef8971914277 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Thu, 6 Mar 2014 11:31:09 -0500 Subject: [PATCH] details: Fix fallback if fetching CPU models fails (bz 1072704) --- virtManager/details.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/virtManager/details.py b/virtManager/details.py index a3207f6c7..56a0d608a 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