Skip to content

Commit

Permalink
fix: issue with wrong named role (redhat-cop#876)
Browse files Browse the repository at this point in the history
Co-authored-by: Przemyslaw Kalitowski <[email protected]>
Co-authored-by: Ivan Aragonés Muniesa <[email protected]>
  • Loading branch information
3 people authored Jul 23, 2024
1 parent 3e51229 commit 4b5e08b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/filetree_create/templates/current_team_roles.j2
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ controller_roles:
{% elif role.summary_fields.resource_type is match('credential') %}
credential: "{{ role.summary_fields.resource_name }}"
{% endif %}
role: "{{ role.name | lower }}"
role: "{% if role.name | lower == 'approve' %}approval{% else %}{{ role.name | lower }}{% endif %}"
{% endif %}
{% endfor %}
{% if last_team_role | default(true) | bool %}
Expand Down

0 comments on commit 4b5e08b

Please sign in to comment.