CLOUDSTACK-8631 :changing if condition in component/test_ss_max_limits.py

This closes #585
This commit is contained in:
nitt10prashant 2015-07-14 15:08:58 +05:30 committed by sanjeev
parent a1ff7e24f3
commit 373b2c787e
1 changed files with 3 additions and 3 deletions

View File

@ -154,16 +154,16 @@ class TestMaxSecondaryStorageLimits(cloudstackTestCase):
try:
# Update resource limits for account
if accountLimit:
if accountLimit is not None:
Resources.updateLimit(self.apiclient, resourcetype=11,
max=accountLimit, account=self.child_do_admin.name,
domainid=self.child_do_admin.domainid)
if projectLimit:
if projectLimit is not None:
Resources.updateLimit(self.apiclient, resourcetype=11,
max=projectLimit, projectid=self.project.id)
if domainLimit:
if domainLimit is not None:
Resources.updateLimit(self.apiclient, resourcetype=11,
max=domainLimit, domainid=self.child_domain.id)
except Exception as e: