virtManager/create: update capsinfo sooner in set_conn_state

We need to update/initialize the capsinfo sooner in that function to be
able to call has_install_options().

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1244566

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Pavel Hrdina 2015-07-20 09:19:57 +02:00 committed by Cole Robinson
parent 2d9587c114
commit cce1f89a34
1 changed files with 3 additions and 2 deletions

View File

@ -504,6 +504,9 @@ class vmmCreate(vmmGObjectUI):
self.widget("startup-error-box").hide()
self.widget("create-forward").set_sensitive(True)
self.conn.invalidate_caps()
self.change_caps()
if not self.capsinfo.guest.has_install_options():
error = _("No hypervisor options were found for this "
"connection.")
@ -517,8 +520,6 @@ class vmmCreate(vmmGObjectUI):
# A bit out of order, but populate arch + hv lists so we can
# determine a default
self.conn.invalidate_caps()
self.change_caps()
self.populate_hv()
self.populate_arch()