mirror of
https://opendev.org/openstack/python-openstackclient.git
synced 2026-01-17 07:20:45 +00:00
Merge "Fix catalog list when region name is absent"
This commit is contained in:
commit
8f7e0ef35e
1 changed files with 2 additions and 1 deletions
|
|
@ -28,7 +28,8 @@ def _format_endpoints(eps=None):
|
|||
return ""
|
||||
ret = ''
|
||||
for index, ep in enumerate(eps):
|
||||
ret += eps[index]['region'] + '\n'
|
||||
region = eps[index].get('region', '<none>')
|
||||
ret += region + '\n'
|
||||
for url in ['publicURL', 'internalURL', 'adminURL']:
|
||||
ret += " %s: %s\n" % (url, eps[index]['publicURL'])
|
||||
return ret
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue