mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 23:12:08 -03:30
Start a new script that can be used to examine a Role's ancestry
This commit is contained in:
parent
5cfeeb3e87
commit
85fc81aab1
14
tools/scripts/ig-hotfix/role_chain.py
Normal file
14
tools/scripts/ig-hotfix/role_chain.py
Normal file
@ -0,0 +1,14 @@
|
||||
from collections import defaultdict
|
||||
import os
|
||||
import sys
|
||||
|
||||
from django.contrib.contenttypes.models import ContentType
|
||||
|
||||
from awx.main.fields import ImplicitRoleField
|
||||
from awx.main.models.rbac import Role
|
||||
|
||||
|
||||
r_id = int(os.environ.get('role'))
|
||||
r = Role.objects.get(id=r_id)
|
||||
|
||||
print(r)
|
||||
Loading…
x
Reference in New Issue
Block a user