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:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user