Cleanup after the bootloader even if the domain building fails.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
Ewan Mellor committed 2006-11-20 16:59:07 +00:00
1 parent e02da28f52
commit a9df6cf30f
1 file changed
+2
+2
View File
@@ -1326,6 +1326,8 @@ class XendDomainInfo:
self._stateSet(DOM_STATE_RUNNING)
except RuntimeError, exn:
log.exception("XendDomainInfo.initDomain: exception occurred")
if self.info['bootloader'] and self.image is not None:
self.image.cleanupBootloading()
raise VmError(str(exn))
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.