cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sanj...@apache.org
Subject git commit: updated refs/heads/master to 373b2c7
Date Wed, 15 Jul 2015 08:14:36 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master a1ff7e24f -> 373b2c787


CLOUDSTACK-8631 :changing if condition in component/test_ss_max_limits.py
This closes #585


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/373b2c78
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/373b2c78
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/373b2c78

Branch: refs/heads/master
Commit: 373b2c787e72b44b85ccae46d47d3c02508e17ac
Parents: a1ff7e2
Author: nitt10prashant <nitt10.prashant@gmail.com>
Authored: Tue Jul 14 15:08:58 2015 +0530
Committer: sanjeev <sanjeev@apache.org>
Committed: Wed Jul 15 13:44:06 2015 +0530

----------------------------------------------------------------------
 test/integration/component/test_ss_max_limits.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/373b2c78/test/integration/component/test_ss_max_limits.py
----------------------------------------------------------------------
diff --git a/test/integration/component/test_ss_max_limits.py b/test/integration/component/test_ss_max_limits.py
index dbbfb45..34c9c7b 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:


Mime
View raw message