From 373b2c787e72b44b85ccae46d47d3c02508e17ac Mon Sep 17 00:00:00 2001 From: nitt10prashant Date: Tue, 14 Jul 2015 15:08:58 +0530 Subject: [PATCH] CLOUDSTACK-8631 :changing if condition in component/test_ss_max_limits.py This closes #585 --- test/integration/component/test_ss_max_limits.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration/component/test_ss_max_limits.py b/test/integration/component/test_ss_max_limits.py index dbbfb45ba34..34c9c7bd703 100644 --- a/test/integration/component/test_ss_max_limits.py +++ b/test/integration/component/test_ss_max_limits.py @@ -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: