virtinst: set_graphics_defaults() first

Some later options may require Spice (or other) to be enabled,
so call set_graphics_defaults() earlier.
Message-Id: <1428012248-5767-4-git-send-email-marcandre.lureau@gmail.com>
This commit is contained in:
Marc-André Lureau 2015-04-03 00:04:06 +02:00 committed by Cole Robinson
parent b44cfde6ac
commit ede876e792
1 changed files with 3 additions and 1 deletions

View File

@ -685,6 +685,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_clock_defaults()
self._set_emulator_defaults()
self._set_cpu_defaults()
@ -698,7 +701,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()