diff options
author | Richard Maw <richard.maw@gmail.com> | 2014-08-08 15:15:06 +0100 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2014-08-19 15:49:03 +0000 |
commit | 2e69fdc0db5c100222b3f8085d871c0a89444c8c (patch) | |
tree | 9d07cfc85b26ecbe9ab2bf42e94b715ac06c4211 /scripts/release-test | |
parent | 1cda941e95c7a8dfd7183d7307c84d0d1d2a2a91 (diff) | |
download | definitions-2e69fdc0db5c100222b3f8085d871c0a89444c8c.tar.gz |
Remove all VM storage together in one command
Diffstat (limited to 'scripts/release-test')
-rwxr-xr-x | scripts/release-test | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/release-test b/scripts/release-test index fd71fdc3..b2bca58d 100755 --- a/scripts/release-test +++ b/scripts/release-test @@ -167,14 +167,11 @@ class DeployedSystemInstance(object): # TODO: Stop assuming that destroy failed because it wasn't running pass try: - self.host_machine.virsh('undefine', self.vm_id) + self.host_machine.virsh('undefine', self.vm_id, '--remove-all-storage') except cliapp.AppException as e: # TODO: Stop assuming that undefine failed because it was # already removed pass - # TODO: Remove all attached disks, rather than just assuming it - # only has one - self.host_machine.runcmd(['rm', self.rootfs_path]) class Deployment(object): |