mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-8631 :changing if condition in component/test_ss_max_limits.py
This closes #585
This commit is contained in:
parent
a1ff7e24f3
commit
373b2c787e
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue