diff --git a/lib/galaxy/webapps/galaxy/api/roles.py b/lib/galaxy/webapps/galaxy/api/roles.py index 990da7a2bcbf..0a1f8f8ec91c 100644 --- a/lib/galaxy/webapps/galaxy/api/roles.py +++ b/lib/galaxy/webapps/galaxy/api/roles.py @@ -46,7 +46,7 @@ def index(self, trans, **kwd): Displays a collection (list) of roles. """ roles = self._role_manager.list_displayable_roles(trans) - return RoleListModel(__root__=list(map(lambda r: role_to_model(trans, r), roles))) + return RoleListModel(__root__=[role_to_model(trans, r) for r in roles]) @web.expose_api def show(self, trans, id, **kwd):