[virt-tools-list] [virt-manager PATCH] cpu: config: replace host-cpu-model by host-model-only

Pavel Hrdina phrdina at redhat.com
Tue Jun 7 10:23:43 UTC 2016


Commit f5c32063 replaced host-cpu-model by host-model-only but forget those two
places.

Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
---

Pushed as trivial.

 virtManager/config.py      | 2 +-
 virtManager/preferences.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/virtManager/config.py b/virtManager/config.py
index 81d6b36..9d394ca 100644
--- a/virtManager/config.py
+++ b/virtManager/config.py
@@ -179,7 +179,7 @@ class vmmConfig(object):
         self.cli_usbredir = None
 
         self.default_storage_format_from_config = "qcow2"
-        self.cpu_default_from_config = "host-cpu-model"
+        self.cpu_default_from_config = CPU.SPECIAL_MODE_HOST_MODEL_ONLY
         self.default_console_resizeguest = 0
         self.default_add_spice_usbredir = "yes"
 
diff --git a/virtManager/preferences.py b/virtManager/preferences.py
index 775bf9c..2818b68 100644
--- a/virtManager/preferences.py
+++ b/virtManager/preferences.py
@@ -163,7 +163,7 @@ class vmmPreferences(vmmGObjectUI):
         for row in [["default", _("System default (%s)") %
                     self.config.cpu_default_from_config],
                     ["hv-default", _("Hypervisor default")],
-                    ["host-cpu-model", _("Nearest host CPU model")],
+                    ["host-model-only", _("Nearest host CPU model")],
                     ["host-model", _("Copy host CPU definition")]]:
             model.append(row)
         combo.set_model(model)
-- 
2.8.3




More information about the virt-tools-list mailing list