From 2e69fdc0db5c100222b3f8085d871c0a89444c8c Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Fri, 8 Aug 2014 15:15:06 +0100 Subject: Remove all VM storage together in one command --- scripts/release-test | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'scripts') 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): -- cgit v1.2.1