mirror of
https://github.com/ansible/awx.git
synced 2026-05-14 12:57:40 -02:30
Start a new script that can be used to examine a Role's ancestry
This commit is contained in:
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)
|
||||||
Reference in New Issue
Block a user