summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/scripts/ig-hotfix/role_chain.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/scripts/ig-hotfix/role_chain.py b/tools/scripts/ig-hotfix/role_chain.py
new file mode 100644
index 0000000000..4b8b7b6918
--- /dev/null
+++ b/tools/scripts/ig-hotfix/role_chain.py
@@ -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)