This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch AIRAVATA-3462
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git
The following commit(s) were added to refs/heads/AIRAVATA-3462 by this push:
new d9b4e5b AIRAVATA-3462 Turn map into list of accessible GRP ids
d9b4e5b is described below
commit d9b4e5ba98ffbc97d37b481f872def21abede599
Author: Marcus Christie <[email protected]>
AuthorDate: Tue May 11 17:54:35 2021 -0400
AIRAVATA-3462 Turn map into list of accessible GRP ids
---
django_airavata/apps/api/helpers.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/django_airavata/apps/api/helpers.py
b/django_airavata/apps/api/helpers.py
index 1974d18..1d4a685 100644
--- a/django_airavata/apps/api/helpers.py
+++ b/django_airavata/apps/api/helpers.py
@@ -65,7 +65,7 @@ class WorkspacePreferencesHelper:
prefs.save()
group_resource_profiles = request.airavata_client.getGroupResourceList(
request.authz_token, settings.GATEWAY_ID)
- group_resource_profile_ids = map(lambda g: g.groupResourceProfileId,
group_resource_profiles)
+ group_resource_profile_ids = list(map(lambda g:
g.groupResourceProfileId, group_resource_profiles))
if (not prefs.most_recent_group_resource_profile_id or
prefs.most_recent_group_resource_profile_id not in
group_resource_profile_ids):
first_grp_id = (group_resource_profile_ids[0]