Commit 9d2f656a authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Update changelog for filtering and user names

parent f00db940
......@@ -13,6 +13,7 @@ Changes:
- Simplify listings (kamaki.cli.utils: print methods)
- Enrich client API docs with examples and astakos endpoint information [#4135]
- Show user names in /file sharers [#4203]
- Show user name in image list, server list [#4228]
Features:
......@@ -48,4 +49,5 @@ Features:
- Implement an astakos.post_user_catalogs call for getting usernames from a
list of user uuids [#4203]
- Use multiformed ranges in file/pithos [#4059]
- Implement more filters in image list, server list [#4220]
......@@ -198,10 +198,12 @@ class server_list(_init_cyclades, _optional_json):
(not nl) or nl.lower() in img['name'].lower())]
def _add_user_name(self, servers):
uuids = self._uuids2usernames(
list(set([srv['user_id'] for srv in servers])))
uuids = self._uuids2usernames(list(set(
[srv['user_id'] for srv in servers] +
[srv['tenant_id'] for srv in servers])))
for srv in servers:
srv['user_id'] += ' (%s)' % uuids[srv['user_id']]
srv['tenant_id'] += ' (%s)' % uuids[srv['tenant_id']]
return servers
def _filtered_by_image(self, servers):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment