Make comparision simplely

For example: a>b and a<=c is equal to b<a<=c

Change-Id: Iae1532f0946c6d4aa7321f3957820b486869c59f
This commit is contained in:
zheng yin
2016-07-18 15:01:21 +08:00
parent c69a49a473
commit bc09be4375

View File

@@ -163,8 +163,7 @@ class ContainerController(Controller):
self.account_info(self.account_name, req)
if not accounts:
return HTTPNotFound(request=req)
if self.app.max_containers_per_account > 0 and \
container_count >= self.app.max_containers_per_account and \
if 0 < self.app.max_containers_per_account <= container_count and \
self.account_name not in self.app.max_containers_whitelist:
container_info = \
self.container_info(self.account_name, self.container_name,