Add an optional parameter --detail

This patch appends th --detail parameter to the ``stores-info``
command. With sufficient permissions, display additional
information about the stores.

Depends-On: https://review.opendev.org/c/openstack/glance/+/824438
Change-Id: I6ae08ab3eaab0c2b118aa7607246214b28025dfe
This commit is contained in:
Mridula Joshi
2022-01-12 13:28:07 +00:00
parent 5d714bed0b
commit 282ce9c209
3 changed files with 63 additions and 4 deletions
+7
View File
@@ -322,6 +322,13 @@ class Controller(object):
resp, body = self.http_client.get(url)
return body, resp
@utils.add_req_id_to_object()
def get_stores_info_detail(self):
"""Get available stores info from discovery endpoint."""
url = '/v2/info/stores/detail'
resp, body = self.http_client.get(url)
return body, resp
@utils.add_req_id_to_object()
def delete_from_store(self, store_id, image_id):
"""Delete image data from specific store."""