From 0454723f9837d3a2eb2978abe556f18de3d89ef9 Mon Sep 17 00:00:00 2001 From: SrikanteswaraRao Talluri Date: Thu, 22 Aug 2013 11:46:58 +0530 Subject: [PATCH] CLOUDSTACK-4425:Fix to attach uploaded volume to a stopped VM test Signed-off-by: Prasanna Santhanam (cherry picked from commit 8762a0d0c6dde46e16b73f6880aa84ec2f359f55) --- test/integration/component/test_stopped_vm.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/integration/component/test_stopped_vm.py b/test/integration/component/test_stopped_vm.py index c845f608c34..41eeb46a95c 100644 --- a/test/integration/component/test_stopped_vm.py +++ b/test/integration/component/test_stopped_vm.py @@ -1697,9 +1697,7 @@ class TestUploadAttachVolume(cloudstackTestCase): 'Stopped', "Check VM state is Running or not" ) - with self.assertRaises(Exception): - virtual_machine.attach_volume(self.apiclient, volume) - self.debug("Failed to attach the volume as expected") + virtual_machine.attach_volume(self.apiclient, volume) return