Merge "Make comparision simplely"

This commit is contained in:
Jenkins 2016-07-20 17:09:21 +00:00 committed by Gerrit Code Review
commit 3382a0e80e

View File

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