From 8daf493a7df4e1e2aa608aa87774581ab3069e53 Mon Sep 17 00:00:00 2001 From: Hirofumi Ichihara Date: Tue, 5 Jan 2016 19:54:20 +0900 Subject: [PATCH] Remove unnecessary argument in limit manage Change-Id: I2a7a99c72f24cafef848806620667c14b655f83e --- neutron/api/api_common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neutron/api/api_common.py b/neutron/api/api_common.py index fe7296773..b31cde75e 100644 --- a/neutron/api/api_common.py +++ b/neutron/api/api_common.py @@ -84,7 +84,7 @@ def get_limit_and_marker(request): pagination, then return None. """ max_limit = _get_pagination_max_limit() - limit = _get_limit_param(request, max_limit) + limit = _get_limit_param(request) if max_limit > 0: limit = min(max_limit, limit) or max_limit if not limit: @@ -108,7 +108,7 @@ def _get_pagination_max_limit(): return max_limit -def _get_limit_param(request, max_limit): +def _get_limit_param(request): """Extract integer limit from request or fail.""" try: limit = int(request.GET.get('limit', 0)) -- 2.45.2