Add check before launch qvm_start()
This commit is contained in:
parent
be39ec86f9
commit
5558127b6f
@ -170,6 +170,7 @@ def main(args=None):
|
|||||||
vm = args.domains.pop()
|
vm = args.domains.pop()
|
||||||
|
|
||||||
window = utils.run_synchronous(functools.partial(VMBootFromDeviceWindow, vm))
|
window = utils.run_synchronous(functools.partial(VMBootFromDeviceWindow, vm))
|
||||||
|
if window.result() == 1 and window.cdrom_location is not None:
|
||||||
qvm_start.main(['--cdrom', window.cdrom_location, vm.name])
|
qvm_start.main(['--cdrom', window.cdrom_location, vm.name])
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
Reference in New Issue
Block a user