CLOUDSTACK-5674: apiclient was used before it was created. Fixed it.

This commit is contained in:
Girish Shilamkar 2014-02-14 14:42:06 +05:30
parent f3a77c79e8
commit aa2831231c
1 changed files with 1 additions and 1 deletions

View File

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