Add exception for missing kvm-img and qemu-img
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
VMBuilder |
New
|
Undecided
|
Unassigned |
Bug Description
Trying to build on a system without kvm-img and qemu-img, the following happens:
2014-05-30 15:49:59,731 INFO : Mounting target filesystems
2014-05-30 15:49:59,732 INFO : Creating disk image: "/tmp/tmp88bqMh" of size: 11264MB
2014-05-30 15:49:59,734 INFO : Cleaning up
2014-05-30 15:49:59,734 ERROR : Couldn't find the program 'None' on your system
Traceback (most recent call last):
File "/usr/local/
cli.main()
File "/usr/local/
hypervisor.
File "/usr/local/
self.
File "/usr/local/
call_
File "/usr/local/
getattr(
File "/usr/local/
disk.create()
File "/usr/local/
run_
File "/usr/local/
raise VMBuilderUserError, "Couldn't find the program '%s' on your system" % (argv[0])
VMBuilder.
I propose merging the small patch in attachment, perhaps with correct exception type.