Update API version to 1.32
Format the capsule addresses and remove some fields that were renamed at API version 1.32 Change-Id: I9591eb6fdcf9f5eb2352d87230753a2e75eccfc9
This commit is contained in:
parent
71900afd5d
commit
f63a318a7d
@ -31,7 +31,7 @@ if not LOG.handlers:
|
||||
HEADER_NAME = "OpenStack-API-Version"
|
||||
SERVICE_TYPE = "container"
|
||||
MIN_API_VERSION = '1.1'
|
||||
MAX_API_VERSION = '1.31'
|
||||
MAX_API_VERSION = '1.32'
|
||||
DEFAULT_API_VERSION = '1.latest'
|
||||
|
||||
_SUBSTITUTIONS = {}
|
||||
|
@ -357,8 +357,9 @@ def base_url_for_url(url):
|
||||
|
||||
|
||||
def list_capsules(capsules):
|
||||
columns = ('uuid', 'status', 'meta_name',
|
||||
'meta_labels', 'containers_uuids', 'created_at', 'addresses')
|
||||
for c in capsules:
|
||||
format_container_addresses(c)
|
||||
columns = ('uuid', 'name', 'status', 'addresses')
|
||||
utils.print_list(capsules, columns,
|
||||
{'versions': print_list_field('versions')},
|
||||
sortby_index=None)
|
||||
|
@ -23,6 +23,7 @@ from zunclient.i18n import _
|
||||
|
||||
|
||||
def _show_capsule(capsule):
|
||||
zun_utils.format_container_addresses(capsule)
|
||||
utils.print_dict(capsule._info)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user