qvm-tools: remove files after failed VM clone

This commit is contained in:
Marek Marczykowski-Górecki 2014-02-22 01:26:51 +01:00
parent 98a59b104c
commit ab094a623a

View File

@ -78,6 +78,7 @@ def main():
except (IOError, OSError) as err:
print >> sys.stderr, "ERROR: {0}".format(err)
qvm_collection.pop(dst_vm.qid)
dst_vm.remove_from_disk()
exit (1)
qvm_collection.save()