CLOUDSTACK-5674: apiclient was used before it was created. Fixed it.
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/aa283123 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/aa283123 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/aa283123 Branch: refs/heads/master Commit: aa2831231cb82773dcf4460a9b29985782d90ebe Parents: f3a77c7 Author: Girish Shilamkar <[email protected]> Authored: Fri Feb 14 14:42:06 2014 +0530 Committer: Girish Shilamkar <[email protected]> Committed: Fri Feb 14 14:42:06 2014 +0530 ---------------------------------------------------------------------- test/integration/smoke/test_affinity_groups.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/aa283123/test/integration/smoke/test_affinity_groups.py ---------------------------------------------------------------------- diff --git a/test/integration/smoke/test_affinity_groups.py b/test/integration/smoke/test_affinity_groups.py index 75d9c48..2d1e6c6 100644 --- a/test/integration/smoke/test_affinity_groups.py +++ b/test/integration/smoke/test_affinity_groups.py @@ -34,8 +34,8 @@ class TestDeployVmWithAffinityGroup(cloudstackTestCase): def setUpClass(cls): cls.testClient = super(TestDeployVmWithAffinityGroup, cls).getClsTestClient() zone_name = cls.testClient.getZoneForTests() - cls.domain = get_domain(cls.apiclient) cls.apiclient = cls.testClient.getApiClient() + cls.domain = get_domain(cls.apiclient) cls.services = cls.testClient.getParsedTestDataConfig() # Get Zone, Domain and templates cls.zone = get_zone(cls.apiclient, cls.testClient.getZoneForTests())
