Skip to content

Commit

Permalink
Merge pull request #291 from fasrc/cp_misc_changes
Browse files Browse the repository at this point in the history
misc_fixes
  • Loading branch information
claire-peters authored May 23, 2024
2 parents 462912b + 4c5082a commit 96373b2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,13 @@ <h3><i class="fas fa-list" aria-hidden="true"></i> Allocation Information</h3>
</tr>
<tr>
<th scope="row" class="text-nowrap">Service Period:</th>
<td>1 Month</td>
<td>
{% if "Storage" in allocation.get_parent_resource.resource_type.name %}
1 Month
{% else %}
Current Quarter
{% endif %}
</td>
</tr>
{% if expense_code %}
<tr>
Expand Down
4 changes: 2 additions & 2 deletions coldfront/core/allocation/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def post(self, request, *args, **kwargs):
'isilon': 'coldfront.plugins.isilon',
# 'lfs': 'coldfront.plugins.lustre',
}
rtype = next((k for k in resources_plugins), None)
rtype = next((k for k in resources_plugins if k in alloc_change_obj.allocation.get_parent_resource.name), None)
if not rtype:
err = ('non-isilon resource interactions are not automated '
'at this time. Please manually create the resource '
Expand Down Expand Up @@ -2039,7 +2039,7 @@ def post(self, request, *args, **kwargs):
'isilon': 'coldfront.plugins.isilon',
# 'lfs': 'coldfront.plugins.lustre',
}
rtype = next((k for k in resources_plugins), None)
rtype = next((k for k in resources_plugins if k in alloc_change_obj.allocation.get_parent_resource.name), None)
if not rtype:
err = ('You cannot auto-update non-isilon resources at this '
'time. Please manually update the resource before '
Expand Down
2 changes: 1 addition & 1 deletion coldfront/plugins/ldap/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def cleaned_membership_query(proj_membs_mans):
if search_errors:
logger.error('could not return members and manager for some groups: %s',
search_errors)
return proj_membs_mans, [search_errors]
return proj_membs_mans, search_errors

def remove_inactive_disabled_managers(groupusercollections):
"""Remove groupusercollections with inactive managers"""
Expand Down

0 comments on commit 96373b2

Please sign in to comment.