From bb47812765414df87eb0a1481ba65127de7b3000 Mon Sep 17 00:00:00 2001 From: Stuart McLaren Date: Tue, 16 Jul 2013 12:44:25 +0000 Subject: Allow v1 client to list all users' images Add a '--all-tenants' option to the image-list command. This adds 'is_public=None' to the query string passed to the server, and for an admin user results in a listing of all images present on the server irrespective of owner or public values. Addresses bug 1201787. Change-Id: I38dd0752a31ebea84f16b786d205e82eba1a96bc --- glanceclient/v1/images.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'glanceclient/v1/images.py') diff --git a/glanceclient/v1/images.py b/glanceclient/v1/images.py index abde32f..1c09cbb 100644 --- a/glanceclient/v1/images.py +++ b/glanceclient/v1/images.py @@ -219,6 +219,8 @@ class ImageManager(base.Manager): if kwargs.get('owner') is not None: params['owner'] = kwargs['owner'] params['is_public'] = None + if 'is_public' in kwargs: + params['is_public'] = kwargs['is_public'] return paginate(params) -- cgit v1.2.1