There was an error while loading. Please reload this page.
2 parents 0efc866 + ee2ba48 commit 8f7e0efCopy full SHA for 8f7e0ef
1 file changed
openstackclient/identity/v2_0/catalog.py
@@ -28,7 +28,8 @@ def _format_endpoints(eps=None):
28
return ""
29
ret = ''
30
for index, ep in enumerate(eps):
31
- ret += eps[index]['region'] + '\n'
+ region = eps[index].get('region', '<none>')
32
+ ret += region + '\n'
33
for url in ['publicURL', 'internalURL', 'adminURL']:
34
ret += " %s: %s\n" % (url, eps[index]['publicURL'])
35
return ret
0 commit comments