[virt-tools-list] [PATCH virt-manager 3/5] virtinst: set_graphics_defaults() first

Marc-André Lureau marcandre.lureau at gmail.com
Thu Apr 2 22:04:06 UTC 2015


Some later options may require Spice (or other) to be enabled,
so call set_graphics_defaults() earlier.
---
 virtinst/guest.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/virtinst/guest.py b/virtinst/guest.py
index 678f675..6f42775 100644
--- a/virtinst/guest.py
+++ b/virtinst/guest.py
@@ -682,6 +682,9 @@ class Guest(XMLBuilder):
                 dev.path = None
 
     def _set_defaults(self):
+        # some options check for has_spice() which is resolved after this:
+        self._set_graphics_defaults()
+
         self._set_osxml_defaults()
         self._set_clock_defaults()
         self._set_emulator_defaults()
@@ -695,7 +698,6 @@ class Guest(XMLBuilder):
         self._add_implied_controllers()
         self._set_net_defaults()
         self._set_input_defaults()
-        self._set_graphics_defaults()
         self._set_video_defaults()
         self._set_sound_defaults()
 
-- 
2.1.0




More information about the virt-tools-list mailing list