CLOUDSTACK-4425:Fix to attach uploaded volume to a stopped VM test

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 8762a0d0c6dde46e16b73f6880aa84ec2f359f55)
This commit is contained in:
SrikanteswaraRao Talluri 2013-08-22 11:46:58 +05:30 committed by Prasanna Santhanam
parent 9100fe2ef9
commit 0454723f98

View File

@ -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