mirror of
https://github.com/ansible/awx.git
synced 2026-04-07 11:09:22 -02:30
Initial check
This commit is contained in:
2
tools/scripts/ig-hotfix/.gitignore
vendored
Normal file
2
tools/scripts/ig-hotfix/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
*~
|
||||||
|
customer-backup.tar.*
|
||||||
6
tools/scripts/ig-hotfix/role_check.py
Normal file
6
tools/scripts/ig-hotfix/role_check.py
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
from collections import Counter
|
||||||
|
|
||||||
|
from awx.main.models.rbac import Role
|
||||||
|
|
||||||
|
|
||||||
|
print(Counter(r.id == getattr(getattr(r.content_object, r.role_field, None), 'id', None) for r in Role.objects.all() if r.content_type))
|
||||||
Reference in New Issue
Block a user