summaryrefslogtreecommitdiff
path: root/openstackclient/identity
diff options
context:
space:
mode:
authorTerryHowe <terrylhowe@gmail.com>2015-03-04 10:14:40 -0700
committerTerryHowe <terrylhowe@gmail.com>2015-03-04 10:14:40 -0700
commitd05b5e14f13244e269c2bbaa9db6395e37af2b8a (patch)
treed2f479ec40102bc67a12723d0529b0d285503143 /openstackclient/identity
parent5d92fc0d0a7c606fdcf7a3565801ae361389d9ab (diff)
downloadpython-openstackclient-d05b5e14f13244e269c2bbaa9db6395e37af2b8a.tar.gz
Fix identity v2 catalog list
The v2 catalog list was only printing the last endpoint in the catalog. Change-Id: I5401a11eedb3be1513c86261329de50c8ad82720
Diffstat (limited to 'openstackclient/identity')
-rw-r--r--openstackclient/identity/v2_0/catalog.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/openstackclient/identity/v2_0/catalog.py b/openstackclient/identity/v2_0/catalog.py
index f6048378..363d5ab2 100644
--- a/openstackclient/identity/v2_0/catalog.py
+++ b/openstackclient/identity/v2_0/catalog.py
@@ -26,8 +26,9 @@ from openstackclient.i18n import _ # noqa
def _format_endpoints(eps=None):
if not eps:
return ""
+ ret = ''
for index, ep in enumerate(eps):
- ret = eps[index]['region'] + '\n'
+ ret += eps[index]['region'] + '\n'
for url in ['publicURL', 'internalURL', 'adminURL']:
ret += " %s: %s\n" % (url, eps[index]['publicURL'])
return ret