diff options
author | Stuart McLaren <stuart.mclaren@hp.com> | 2013-07-16 12:44:25 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2013-07-26 11:01:52 +0000 |
commit | bb47812765414df87eb0a1481ba65127de7b3000 (patch) | |
tree | 7be9beae78ce2b7e6719e69c1f195428ae6c91e2 /glanceclient/v1/images.py | |
parent | 12feedb2cfe087f7126f250850f35ebb1cf3de7a (diff) | |
download | python-glanceclient-bb47812765414df87eb0a1481ba65127de7b3000.tar.gz |
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
Diffstat (limited to 'glanceclient/v1/images.py')
-rw-r--r-- | glanceclient/v1/images.py | 2 |
1 files changed, 2 insertions, 0 deletions
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) |