diff options
author | Dan Firth <dan.firth@codethink.co.uk> | 2013-10-10 16:07:37 +0000 |
---|---|---|
committer | Dan Firth <dan.firth@codethink.co.uk> | 2013-10-14 12:00:27 +0000 |
commit | a146142f6ae7f4b20d76f68b8317eae89c4213ab (patch) | |
tree | 459700d30f7f37790fcacd770f48f0abad2227b5 /morphlib/exts/virtualbox-ssh.write | |
parent | df64e4300d7b39c29ce75273196a7894c86a98a9 (diff) | |
download | morph-a146142f6ae7f4b20d76f68b8317eae89c4213ab.tar.gz |
Deployment failures will now remove the disk image
Diffstat (limited to 'morphlib/exts/virtualbox-ssh.write')
-rwxr-xr-x | morphlib/exts/virtualbox-ssh.write | 2 |
1 files changed, 1 insertions, 1 deletions
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) |