From a9a692b351ea87841045fbe6c1c86d70e1af5fea Mon Sep 17 00:00:00 2001 From: Louis Taylor Date: Fri, 6 Mar 2015 13:18:11 +0000 Subject: [PATCH] v2: read limit for list from --limit in shell Previously this was read from the --page-size argument, which lead to incorrect behaviour. Change-Id: I08ecda95eca0ff524e28a1d5371ce6c73dfc548e Closes-Bug: #1429088 --- glanceclient/v2/shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glanceclient/v2/shell.py b/glanceclient/v2/shell.py index f3838654..b20d8b2e 100644 --- a/glanceclient/v2/shell.py +++ b/glanceclient/v2/shell.py @@ -138,7 +138,7 @@ def do_image_list(gc, args): kwargs = {'filters': filters} if args.limit is not None: - kwargs['limit'] = args.page_size + kwargs['limit'] = args.limit if args.page_size is not None: kwargs['page_size'] = args.page_size