hvm: fix return value of vm.start()

This commit is contained in:
Marek Marczykowski-Górecki 2013-12-17 23:59:05 +01:00
parent a070ab70df
commit cdd031cea5

View File

@ -356,7 +356,7 @@ class QubesHVm(QubesVm):
if self.template and self.template.is_running(): if self.template and self.template.is_running():
raise QubesException("Cannot start the HVM while its template is running") raise QubesException("Cannot start the HVM while its template is running")
try: try:
super(QubesHVm, self).start(*args, **kwargs) return super(QubesHVm, self).start(*args, **kwargs)
except QubesException as e: except QubesException as e:
if xc.physinfo()['virt_caps'].count('hvm') == 0: if xc.physinfo()['virt_caps'].count('hvm') == 0:
raise QubesException("Cannot start HVM without VT-x/AMD-v enabled") raise QubesException("Cannot start HVM without VT-x/AMD-v enabled")