qvm-tools: remove files after failed VM clone
This commit is contained in:
parent
98a59b104c
commit
ab094a623a
@ -78,6 +78,7 @@ def main():
|
|||||||
except (IOError, OSError) as err:
|
except (IOError, OSError) as err:
|
||||||
print >> sys.stderr, "ERROR: {0}".format(err)
|
print >> sys.stderr, "ERROR: {0}".format(err)
|
||||||
qvm_collection.pop(dst_vm.qid)
|
qvm_collection.pop(dst_vm.qid)
|
||||||
|
dst_vm.remove_from_disk()
|
||||||
exit (1)
|
exit (1)
|
||||||
|
|
||||||
qvm_collection.save()
|
qvm_collection.save()
|
||||||
|
Loading…
Reference in New Issue
Block a user