Skip to content

Commit

Permalink
support services in role display repoable table
Browse files Browse the repository at this point in the history
  • Loading branch information
patricksanders committed Jan 26, 2021
1 parent 2f139c8 commit ec08f4e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion repokid/commands/role.py
Expand Up @@ -236,7 +236,10 @@ def _display_role(
for permission in permissions:
service = permission.split(":")[0]
action = permission.split(":")[1]
repoable = permission in role.repoable_services
repoable = (
permission in role.repoable_services
or permission.split(":")[0] in role.repoable_services
)
rows.append([service, action, repoable])

rows = sorted(rows, key=lambda x: (x[2], x[0], x[1]))
Expand Down

0 comments on commit ec08f4e

Please sign in to comment.