CLOUDSTACK-8521: Improving logging in test case - test_egress_fw_rules.py

Signed-off-by: Gaurav Aradhye <gaurav.aradhye@clogeny.com>
This closes #345
This commit is contained in:
Gaurav Aradhye 2015-06-02 12:39:11 +05:30
parent 108a74a6b8
commit 8bf59b5393
1 changed files with 1 additions and 4 deletions

View File

@ -217,8 +217,7 @@ class TestEgressFWRules(cloudstackTestCase):
self.debug("Deploying instance in the account: %s" % self.account.name)
project = None
try:
self.virtual_machine = VirtualMachine.create(self.apiclient,
self.virtual_machine = VirtualMachine.create(self.apiclient,
self.services["virtual_machine"],
accountid=self.account.name,
domainid=self.domain.id,
@ -226,8 +225,6 @@ class TestEgressFWRules(cloudstackTestCase):
mode=self.zone.networktype if pfrule else 'basic',
networkids=[str(self.network.id)],
projectid=project.id if project else None)
except Exception as e:
self.fail("Virtual machine deployment failed with exception: %s" % e)
self.debug("Deployed instance %s in account: %s" % (self.virtual_machine.id,self.account.name))
# Checking if VM is running or not, in case it is deployed in error state, test case fails