From 5f893daa2cab381aef6ac59eeebe923373c4ea80 Mon Sep 17 00:00:00 2001 From: Girish Shilamkar Date: Wed, 13 Aug 2014 18:47:37 +0530 Subject: [PATCH] CLOUDSTACK-7284: Fixed regression issue in test_escalations_instances.py --- test/integration/component/test_escalations_instances.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/integration/component/test_escalations_instances.py b/test/integration/component/test_escalations_instances.py index c75faea0a7a..1b72b2f3908 100644 --- a/test/integration/component/test_escalations_instances.py +++ b/test/integration/component/test_escalations_instances.py @@ -2635,9 +2635,11 @@ class TestInstances(cloudstackTestCase): # stopping VM before detaching volumes vm_created.stop(self.userapiclient) - # Detaching all the volumes attached from VM - for i in range(0, len(list_volumes_page1)): - vm_created.detach_volume( + # Detaching root volume is allowed on XenServer only + if self.hypervisor.lower() == 'xenserver': + # Detaching all the volumes attached from VM + for i in range(0, len(list_volumes_page1)): + vm_created.detach_volume( self.userapiclient, list_volumes_page1[i] )