From a146142f6ae7f4b20d76f68b8317eae89c4213ab Mon Sep 17 00:00:00 2001 From: Dan Firth Date: Thu, 10 Oct 2013 16:07:37 +0000 Subject: Deployment failures will now remove the disk image --- morphlib/exts/virtualbox-ssh.write | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'morphlib/exts/virtualbox-ssh.write') diff --git a/morphlib/exts/virtualbox-ssh.write b/morphlib/exts/virtualbox-ssh.write index 2374db31..f18ef804 100755 --- a/morphlib/exts/virtualbox-ssh.write +++ b/morphlib/exts/virtualbox-ssh.write @@ -76,10 +76,10 @@ class VirtualBoxPlusSshWriteExtension(morphlib.writeexts.WriteExtension): except BaseException: sys.stderr.write('Error deploying to VirtualBox') os.remove(raw_disk) + cliapp.ssh_runcmd(ssh_host, ['rm', '-f', vdi_path]) raise else: os.remove(raw_disk) - self.status( msg='Virtual machine %(vm_name)s has been created', vm_name=vm_name) -- cgit v1.2.1