Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Seth Foster <[email protected]>
  • Loading branch information
fosterseth committed Aug 21, 2024
1 parent 980d442 commit b1032ae
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions awx/main/tests/functional/dab_rbac/test_managed_roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@ def test_legacy_RBAC_uses_controller_specific_roles(setup_managed_roles, resourc
Assignment to legacy RBAC roles should use controller specific role definitions
e.g. Controller Team Admin, Controller Team Member, Controller Organization Member, Controller Organization Admin
'''
if resource_name == 'Team':
resource = team
else:
resource = organization
resource = team if resource_name == 'Team' else organization
if action == 'Member':
resource.member_role.members.add(bob)
else:
Expand Down

0 comments on commit b1032ae

Please sign in to comment.