From ab094a623aab64106d3b55d4ea2b1b2cd1fe9794 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 22 Feb 2014 01:26:51 +0100 Subject: [PATCH] qvm-tools: remove files after failed VM clone --- qvm-tools/qvm-clone | 1 + 1 file changed, 1 insertion(+) diff --git a/qvm-tools/qvm-clone b/qvm-tools/qvm-clone index cd8f6017..3f04fe3b 100755 --- a/qvm-tools/qvm-clone +++ b/qvm-tools/qvm-clone @@ -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()