diff --git a/virtManager/create.py b/virtManager/create.py index eee739195..df92709b9 100644 --- a/virtManager/create.py +++ b/virtManager/create.py @@ -2326,6 +2326,11 @@ class vmmCreate(vmmGObjectUI): if not vm.is_shutoff(): return + if vm.get_install_abort(): + logging.debug("User manually shutdown VM, not restarting " + "guest after install.") + return True + try: if virtinst_guest: continue_inst = virtinst_guest.get_continue_inst() @@ -2341,11 +2346,6 @@ class vmmCreate(vmmGObjectUI): self._check_install_status, None) return True - if vm.get_install_abort(): - logging.debug("User manually shutdown VM, not restarting " - "guest after install.") - return True - logging.debug("Install should be completed, starting VM.") vm.startup() except Exception, e: