From ac6b26ff810cd2f3a9f7de0fa7bb481dd0781be3 Mon Sep 17 00:00:00 2001 From: Saksham Srivastava Date: Wed, 7 Aug 2013 19:26:28 +0530 Subject: [PATCH] CLOUDSTACK-4021:[Automation] TestExplicitDedication.test_01_deploy_vm_with_explicit_dedication failed to deploy VM Signed-off-by: Prasanna Santhanam (cherry picked from commit 8191f5c6902b3c0d677858ef851f1eade8871d8d) --- test/integration/component/test_explicit_dedication.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/integration/component/test_explicit_dedication.py b/test/integration/component/test_explicit_dedication.py index e1991ac5219..93c277156e3 100644 --- a/test/integration/component/test_explicit_dedication.py +++ b/test/integration/component/test_explicit_dedication.py @@ -178,6 +178,10 @@ class TestExplicitDedication(cloudstackTestCase): empty_host = host break + #If no empty host is found, return + if empty_host: + self.skipTest("Did not find any empty hosts, Skipping") + # Create an affinity group for explicit dedication. agCmd = createAffinityGroup.createAffinityGroupCmd() agCmd.name = "explicit-affinity"